An implementation of the Grammar of Graphics in R
Latest commit 2b41ba4 Oct 24, 2016 @hadley committed on GitHub Dynamically access ggproto super class (#1872)
Fixes #1826


Build Status CRAN_Status_Badge

ggplot2 is a plotting system for R, based on the grammar of graphics, which tries to take the good parts of base and lattice graphics and avoid bad parts. It takes care of many of the fiddly details that make plotting a hassle (like drawing legends) as well as providing a powerful model of graphics that makes it easy to produce complex multi-layered graphics.

Find out more at, and check out the nearly 500 examples of ggplot in use. If you're interested, you can also sign up to the ggplot2 mailing list at


Get the released version from CRAN:


Or the development version from github:

# install.packages("devtools")