3016 search results for "ggplot2"

ggplot2 2.2.0 coming soon!

October 3, 2016
By
ggplot2 2.2.0 coming soon!

I’m planning to release ggplot2 2.2.0 in early November. In preparation, I’d like to announce that a release candidate is now available: version 2.1.0.9001. Please try it out, and file an issue on GitHub if you discover any problems. I hope we can find and fix any major issues before the official release. Install the pre-release version

Read more »

ggplot2 (ggplot) Introduction

August 26, 2016
By
ggplot2 (ggplot) Introduction

In this post I’ll briefly introduce how to use ggplot2 (ggplot), which by default makes nicer looking plots than the standard R plotting functions. The first thing to know is that ggplot requires data frames work properly. It is an entirely different framework from the standard plotting functions in R. Let’s grab a default data

Read more »

ggplot2 themes examples

August 19, 2016
By
ggplot2 themes examples

This short post is exactly what it seems: a showcase of all ggplot2 themes available within the ggplot2 package. I was doing such a list for myself (you know that feeling …”how would it look like with this theme? let’s try this one…”) and at the end I thought it could have be useful for Related Post

Read more »

Plotting background data for groups with ggplot2

August 11, 2016
By
Plotting background data for groups with ggplot2

This tweet by mikefc alerted me to a mind-blowingly simple but amazing trick using the ggplot2 package: to visualise data for different groups in a facetted plot with all of the data plotted in the background. Here’s an example that we’ll learn to make in this post so you know what I’m talking about:

Read more »

Plot some variables against many others with tidyr and ggplot2

July 29, 2016
By
Plot some variables against many others with tidyr and ggplot2

Want to see how some of your variables relate to many others? Here’s an example of just this: library(tidyr) library(ggplot2) mtcars %>% gather(-mpg, -hp, -cyl, key = "var", value = "value") %>% ggplot(aes(x = value, y = mpg, color = hp, shape = factor(cyl))) + geom_point() + facet_wrap(~ var, scales =...

Read more »

A Gallery of ggplot2 Extensions

July 28, 2016
By
A Gallery of ggplot2 Extensions

A couple of months ago, I announced the ggplot2-extensions website which tracks and lists extensions built on top of the popular R visualization package ggplot2. Now, I wanted to make it even easier for R users to filter and search for these extensions and so I have added a Gallery page. You can now search

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 »

New Course: R Data Visualization with ggplot2 – Part 2

July 13, 2016
By
New Course: R Data Visualization with ggplot2 – Part 2

In our second course on ggplot2 “Data Visualization with ggplot2 (2)”, you will take the step from exploratory to explanatory data visualization. In five chapters, you’ll get to know more ggplot layers and tools needed to create excellent visuals...

Read more »

New Course: R Data Visualization with ggplot2 – Part 1

July 13, 2016
By
New Course: R Data Visualization with ggplot2 – Part 1

Learn how to produce meaningful and beautiful data visualizations with DataCamp’s ggplot2 course series. Be introduced to the principles of good visualizations and the grammar of graphics plotting concept implemented in the ggplot2 package. Learn yo...

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)