176 search results for "ggplot background grid colour"

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

January 21, 2017
By
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 »

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 »

Creating beautiful charts in chinese with ggplot2

December 9, 2016
By
Creating beautiful charts in chinese with ggplot2

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

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 »

ggplot 2.0.0

December 22, 2015
By

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

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)