Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (21 sloc) 1.3 KB


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.

To install or update, run:

install.packages(c("ggplot2", "plyr"))

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, or track development at


ggplot2 follows the git flow branching model. There are two main long-lived branches:

  • master: main branch containing production-ready (i.e. releasable to CRAN) code. This branch should always pass R CMD check

  • develop: where all development occurs. Small changes maybe be made directly in this branch, but any larger changes should be made in a feature branch created with git flow feature start

Other branches are described in more detail on the main git flow page.

Jump to Line
Something went wrong with that request. Please try again.