187 search results for "ggplot background grid colour"

WHO Tuberculosis Data & ggplot2

March 3, 2017
By
WHO Tuberculosis Data & ggplot2

So it has been a while since my previous post on some data taken from the UNHCR database. This post we’ll bring it back to the topic of infectious diseases (check out my other posts on the SIR model and MRSA typing). For this post, as similar to previous ones, I give a guide through the … Continue...

Read more »

tidyquant 0.3.0: ggplot2 Enhancements, Real-Time Data, and More

tidyquant 0.3.0: ggplot2 Enhancements, Real-Time Data, and More

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...

Read more »

Creating beautiful charts in chinese with ggplot2

January 16, 2017
By
Creating beautiful charts in chinese with ggplot2

Update Jan 17, 2017: Ruilong Xu (徐瑞龙) warned me that 商務處智利中國 is 商务处智利中国 in traditional characters. Thanks for the correction,Ruilong! I still don't have 2016's official trade numbers,sorry。I also moved to an open typography to write in simplified chinese and I added some ggplot2 v2.2 new features。 Before we start My chinese skills are poor and biased. I did learn during...

Read more »

SIR model with deSolve & ggplot2

January 4, 2017
By
SIR model with deSolve & ggplot2

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...

Read more »

How to add a background image to ggplot2 graphs

October 29, 2016
By
How to add a background image to ggplot2 graphs

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

Read more »

Line plot for two-way designs using ggplot2

July 24, 2016
By
Line plot for two-way designs using ggplot2

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: library(dplyr) library(ggplot2) pd <- position_dodge(width = 0.2) mtcars %>% mutate(cyl = factor(cyl), am = factor(am, labels = c("automatic", "manual"))) %>% group_by(cyl, am) %>% summarise(hp_mean =...

Read more »

Using 2D Contour Plots within {ggplot2} to Visualize Relationships between Three Variables

July 24, 2016
By
Using 2D Contour Plots within {ggplot2} to Visualize Relationships between Three Variables

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...

Read more »

The ggthemr package – Theme and colour your ggplot figures

July 4, 2016
By
The ggthemr package – Theme and colour your ggplot figures

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!

Read more »

Scraping and Plotting Minneapolis Property Prices | RSelenium, ggmap, ggplots

June 8, 2016
By
Scraping and Plotting Minneapolis Property Prices | RSelenium, ggmap, ggplots

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 →

Read more »

Variography with gstat and ggplot2

March 18, 2016
By
Variography with gstat and ggplot2

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...

Read more »

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)