ggplot2 is an actively maintained open-source chart-drawing library for R, written by Hadley Wickham, based upon the principles of "The Grammar of Graphics". It partially replaces R's basic plot and the lattice package, while providing a clean, powerful, orthogonal and fun API.
ggplot2 is an actively maintained, open-source chart-drawing library for r, written by Hadley Wickham, based upon the principles of "The Grammar of Graphics" by Leland Wilkinson. It partially replaces R's basic plot and the lattice package, while providing a clean, powerful and orthogonal and fun API.
- Download from the package archive or use
- Hadley's online old documentation (pre-0.9) and new documentation
- View the wiki at GitHub for tips, examples and case studies
- Hadley's Book "ggplot2: Elegant Graphics for Data Analysis" at Amazon – preview
- Google Groups Discussion
- View the source at GitHub
- Detailed usage and comparison to lattice at "Learning R"
- Hadley's stackoverflow user account
- On Mar 1st 2012 a major new version was released, 0.9.0. A PDF detailing many of the new features and changes is available.
- On Sept 11th 2012, version 0.9.2 was released. See documentation and a list of changes.
- Winston Chang's Cookbook for R has pages that have been updated to reflect changes in the new version of ggplot2 0.9.2.
There are several related packages on CRAN that are based upon, or extend ggplot2's functionality:
- GGally: Package containing templates for different plots to be combined into a plot matrix, as well as a parallel coordinate plot function
- ggcolpairs: Combination of ggplot2 plots into a matrix based on data columns
- ggdendro: Tools for extracting dendrogram and tree diagram plot data for use with ggplot2
- granovaGG: Graphical analysis of variance using ggplot2
- nvis: Combination of visualization functions for nuclear data using ggplot2 and ggcolpairs
- ggmap allows visualization of spatial data and models on top of Google Maps, OpenStreetMaps, Stamen Maps, or CloudMade Maps using ggplot2
- Finally, the package gridExtra is often useful, as ggplot2 is based upon the grid graphics system.