ggplot2

ggplot2 is an R package for statistical graphics that implements a compositional “grammar of graphics” framework (after Wilkinson), in which plots are constructed from independent, orthogonal components (e.g., data mappings, geometric layers, statistical transformations, scales, coordinates, and themes). This grammar-based design enables users to define a broad space of visualizations by combining reusable primitives rather than selecting from a fixed catalog of plot types, supporting both rapid generation of publication-quality defaults and systematic customization when required.


The package is optimized for iterative analytical workflows: users can begin with a layer showing raw data and incrementally add annotations, model summaries, or other derived layers, maintaining a clear correspondence between an analysis specification and its graphical representation. Because the core abstractions operate at a higher level than low-level drawing commands (points/lines), new graphical components and transformations can be developed and composed with existing plots and datasets in a principled way, reducing reliance on ad hoc special cases and improving extensibility and reproducibility of visualization code.

Topics

Collections

Details

Tool Type:
library
Operating Systems:
Linux, Windows, Mac
Programming Languages:
R
Added:
1/17/2017
Last Updated:
11/24/2024

Operations

Publications

Wickham H. ggplot2. Use R!. 2016. doi:10.1007/978-3-319-24277-4.

Documentation

Related Tools

ggtranscript
Relation: usedBy