tidyquant, version 0.3.0, is a pretty sizable release that includes a little bit for everyone, including new financial charting and moving average geoms for use with ggplot2, a new tq_get get option called "key.stats" for retrieving real-time stock inf...
This is my first post ever… and in 2017! Since I am currently fun-employed, my hope is to upload some interesting material on using R on a weekly basis. Making this an informative and motivational blog to share my interests and mini-projects in R. Now on to this post’s material… Last year in my infectious disease epidemiology course, … Continue...
Before we start
My chinese skills are poor and biased. I did learn during my internship and I continue to study while I can translate "last year our exports were 19,000 USD million" but I don't know all the colors.
I will use this dataset and for the example and you can use any chinese font you want. In this...
When producing so called infographics, it is rather common to use images rather than a mere grid as background. In this blog post, I will show how to use a background image with ggplot2. Packages required The following code will install load and / or install the R packages required for this blog post. if Related Post
Want to use R to plot the means and compare differences between groups, but don’t know where to start? This post is for you.
As usual, let’s start with a finished example:
pd <- position_dodge(width = 0.2)
mutate(cyl = factor(cyl), am = factor(am, labels = c("automatic", "manual"))) %>%
group_by(cyl, am) %>%
Guest post by John Bellettiere, Vincent Berardi, Santiago Estrada The Goal To visually explore relations between two related variables and an outcome using contour plots. We use the contour function in Base R to produce contour plots that are well-suited for initial investigations into three dimensional data. We then develop visualizations using ggplot2 to gain … Continue...
Want better colours for ggplot2? "Ggthemr" is an R package that provides new colour themes and also the specification of your own colour palettes. Change the look and feel of your ggplot2 plots in R with two quick commands! Beautiful figures await!
I recall having once scraped data from a Malaysian property site so that I may be able to plot the monthly rental rates for a specific neighborhood in Selangor. This time I thought it might be interesting to try and … Continue reading →
Last year I wrote a short demo on variography with gstat and ggplot2 for a colleague who was planning to migrate to R. Just thought I’d share this here (with some additional stuff) as it might be useful for other people as well.First, make sure you have the necessary packages installed and loaded:require('gstat')## Loading required package: gstatrequire('sp')## Loading required package: sprequire('ggplot2')## Loading...
I’m very pleased to announce the release of ggplot2 2.0.0. I know I promised that there wouldn’t be any more updates, but while working on the 2nd edition of the ggplot2 book, I just couldn’t stop myself from fixing some long standing problems. On the scale of ggplot2 releases, this one is huge with over