Create elegant data visualisations in R using the grammar of graphics
open sourceMITfree
ggplot2 is an R package for creating graphics declaratively, based on The Grammar of Graphics: you give it the data, say how variables map to aesthetics (position, colour, size) and which geometric layers to draw, and it handles the details. Plots are built up in layers with scales, facets, coordinate systems and themes, and a large ecosystem of extension packages adds more geoms and themes. It's part of the tidyverse, developed by its core team with Posit as funder, and runs anywhere R does.
Problems it solves
- make publication-quality charts in R
- plot a data frame by mapping columns to colour, size and position
- split one chart into small multiples by a category
- a consistent way to build layered plots in R
- theme all the charts in my R report the same way
Features
- declarative plots from data, aesthetics and layers
- scales, facets, coordinate systems and themes
- extension packages add geoms, stats and themes
- part of the tidyverse
Capabilities
| Takes plugins | plan not known |
|---|
