ggplot2 logo
Code librarySample

ggplot2

Posit and the R community

R’s implementation of the grammar of graphics: build any chart by layering data, aesthetic mappings and geometries.

Licence
Open source
Built by
Developers
Languages
R
Runs on
R code, Quarto and R Markdown

Scores

Out of 5. The tick marks the average for code libraries in the library.

Ease of use
3
Visual control
5
Interactivity
1
Sharing
2
Governance
1
Low cost
5
Data scale
3

Strengths

  • A consistent grammar that scales from simple to complex charts
  • Faceting makes small multiples trivial
  • A rich ecosystem of extensions

Limitations

  • R only
  • Static by default; interactivity comes from extensions
  • The grammar takes time to learn

Best for

  • Statistical graphics and research
  • Small multiples

Other code libraries