142 search results for "ggplot background grid colour"

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 »

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 »

Using the ggplot2 library in R

September 20, 2015
By
Using the ggplot2 library in R

In this article, I will show you how to use the ggplot2 plotting library in R. It was written by Hadley Wickham. If you don’t have already have it, install it and load it up: install.packages('ggplot2') library(ggplot2) qplot qplot is the quickest way to get off the ground running. For this demonstration, we will use

Read more »

Faceted “World Population by Income” Choropleths in ggplot

July 9, 2015
By
Faceted “World Population by Income” Choropleths in ggplot

Poynter did a nice interactive piece on world population by income (i.e. “How Many Live on How Much, and Where”). I’m always on the lookout for optimized shapefiles and clean data (I’m teaching a data science certificate program starting this Fall) and the speed of the site load and the easy availability of the data

Read more »

ggExtra: R package for adding marginal histograms to ggplot2

March 29, 2015
By
ggExtra: R package for adding marginal histograms to ggplot2

My first CRAN package, ggExtra, contains several functions to enhance ggplot2, with the most important one being ggExtra::ggMarginal() - a function that finally allows easily adding marginal density plots or histograms to scatterplots. Availability You can read the full README describing the functionality in detail or browse the source code on GitHub. The package is available through both CRAN...

Read more »

R + ggplot2 Graph Catalog

February 3, 2015
By
R + ggplot2 Graph Catalog

Joanna Zhao’s and Jenny Bryan’s R graph catalog is meant to be a complement to the physical book, Creating More Effective Graphs, but it’s a really nice gallery in its own right. The catalog shows a series of different data visualizations, all made with R and ggplot2. Click on any of the plots and you get the...

Read more »

Animations and GIFs using ggplot2

December 26, 2014
By
Animations and GIFs using ggplot2

Tracing a regression lineDiverging density plotsHappy New Year plot Happy New Year everyone! For the last post of the year, I thought I'd have a little fun with the new animation package in R. It's actually really easy to use. I recently had some fun w...

Read more »

Sponsors

Mango solutions



plotly webpage

dominolab webpage



Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training

datasociety

http://www.eoda.de





ODSC

ODSC

CRC R books series





Six Sigma Online Training









Contact us if you wish to help support R-bloggers, and place your banner here.

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)