Skip to content

ggplot2

4.0.3

Create Elegant Data Visualisations Using the Grammar of Graphics

6,844packages depend
27.4Mdownloads / year
81.1%test coverage
8/13checks pass

Overview

About
Maintained by Thomas Lin PedersenFirst published 2007-06-0171 releasesCRAN page ↗GitHub ↗

A system for 'declaratively' creating graphics, based on "The Grammar of Graphics". You provide the data, tell 'ggplot2' how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details.

Install

Health

CRAN checks
5NOTE8OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
Slowest check: 18.2 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 1.06
81.1%
Coverage · measured lines
100%
Documentation · exports
12
Dependencies · direct
Check history
  • NOTE2026-07-11
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-08
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-06-07
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-30
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-07
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 513 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
94%
Documented parameters
85%
Return-value docs
21%
References docs
2%

Downloads

27.4M
CRAN downloads in the past year
Rank #2 · ~75K/day · ~2.3M/mo
Daily download trend is not available in this view yet.
2M30 days
7.4M90 days
27.4M1 year
Compare downloads with other packages →
Also on208.4K r2u103 autocran1.5M conda_forge1.6K bioconda5.6K c2d4u

Repository

Repository
6,980Stars
2,129Forks
94Open issues
49Open PRs
30Releases
5,747Commits
375Contributors
rvisualisationdata-visualisation
5,747 commits · Last activity 2026-04-22 · +0.2% stars, 30d

Stars over time

2025-08-17 · 6,6742026-08-18 · 6,981

Repository practices

Upstream repositoryBeta

10 development-tooling and community-health practices detected across 8 families in the upstream repository

Checks run against github.com/tidyverse/ggplot2 on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
Coverage (1)
Codecov
Governance and community (2)
Issue templatesGovernance doc
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
33 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Datasets

People & History

People (11)
Maintainer (1)
Author, Maintainer · added in 3.0.0
Authors (10)
Author, Maintainer · added in 3.0.0
Author · added in 0.9.2
Author · added in 3.3.0
Author · added in 3.0.0
Author · added in 3.0.0
Author · added in 3.0.0
Author · added in 3.0.0
Author · added in 3.2.0
Author · added in 3.5.0
Copyright holders (1)
Copyright holder, Funder · added in 3.4.2
Funders (1)
Copyright holder, Funder · added in 3.4.2
Listed in earlier versions (1)
no longer listed · 2.0.0 to 3.4.1
Package Timeline

71 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 4.0.3Latest
    2026-04-22 · current release · diff ↗
  • 4.0.2
    2026-02-03 · diff ↗
  • 4.0.1
    2025-11-14 · diff ↗
  • 4.0.0
    2025-09-11 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 3.5.2
    2025-04-09 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 3.5.1
    2024-04-23 · diff ↗
  • 3.5.0
    2024-02-23 · diff ↗
  • 3.4.4
    2023-10-12 · diff ↗
  • 3.4.3
    2023-08-14 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 3.4.2
    2023-04-03 · diff ↗
  • 3.4.1
    2023-02-10 · diff ↗
  • 3.4.0
    2022-11-04 · diff ↗
Show 81 earlier events
  • 3.3.6
    2022-05-03 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 3.3.5
    2021-06-25 · diff ↗
  • 3.3.4
    2021-06-16 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 3.3.3
    2020-12-30 · diff ↗
  • 3.3.2
    2020-06-19 · diff ↗
  • 3.3.1
    2020-05-29 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 3.3.0
    2020-03-05 · diff ↗
  • 3.2.1
    2019-08-11 · diff ↗
  • 3.2.0
    2019-06-16 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 3.1.1
    2019-04-07 · diff ↗
  • 3.1.0
    2018-10-25 · diff ↗
  • 3.0.0
    2018-07-03 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 2.2.1
    2016-12-30 · diff ↗
  • 2.2.0
    2016-11-11 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 2.1.0
    2016-03-01 · diff ↗
  • 2.0.0
    2015-12-18 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 1.0.1
    2015-03-17 · diff ↗
  • 1.0.0
    2014-05-21 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • R
    R 3.0.0 released · 2013-04-03
  • 0.9.3.1
    2013-03-02 · diff ↗
  • 2.15.3
    2013-03-01 · diff ↗
  • 0.9.3
    2012-12-05 · diff ↗
  • 0.9.2.1
    2012-09-11 · diff ↗
  • 2.15.2
    2012-09-10 · diff ↗
  • 0.9.2
    2012-09-04 · diff ↗
  • 2.15.1
    2012-05-08 · diff ↗
  • 0.9.1
    2012-05-08 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 0.9.0
    2012-03-01 · diff ↗
  • 2.14.2
    2012-02-28 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • R
    R 2.13.0 released · 2011-04-13
  • 2.12.2
    2010-12-23 · diff ↗
  • 0.8.9
    2010-12-23 · diff ↗
  • R
    R 2.12.0 released · 2010-10-15
  • 0.8.8
    2010-07-05 · diff ↗
  • 2.12.0
    2010-07-02 · diff ↗
  • R
    R 2.11.0 released · 2010-04-22
  • 2.11.0
    2010-03-02 · diff ↗
  • 0.8.7
    2010-03-02 · diff ↗
  • 0.8.6
    2010-02-18 · diff ↗
  • 0.8.5
    2009-12-16 · diff ↗
  • 2.10.1
    2009-12-09 · diff ↗
  • 0.8.4
    2009-12-09 · diff ↗
  • R
    R 2.10.0 released · 2009-10-26
  • 2.10.0
    2009-04-20 · diff ↗
  • 0.8.3
    2009-04-20 · diff ↗
  • R
    R 2.9.0 released · 2009-04-17
  • 0.8.2
    2009-02-25 · diff ↗
  • 2.9.0
    2009-02-24 · diff ↗
  • 0.8.1
    2008-12-14 · diff ↗
  • 2.8.1
    2008-12-12 · diff ↗
  • 0.8
    2008-11-21 · diff ↗
  • R
    R 2.8.0 released · 2008-10-20
  • 0.7
    2008-10-05 · diff ↗
  • 2.8.0
    2008-10-03 · diff ↗
  • R
    R 2.7.0 released · 2008-04-22
  • 0.6
    2008-04-03 · diff ↗
  • 0.5.7
    2008-01-11 · diff ↗
  • 2.6.2
    2008-01-10 · diff ↗
  • 0.5.6
    2007-10-20 · diff ↗
  • R
    R 2.6.0 released · 2007-10-03
  • 0.5.5
    2007-09-01 · diff ↗
  • 2.6.0
    2007-08-28 · diff ↗
  • 0.5.4
    2007-07-08 · diff ↗
  • 0.5.2
    2007-06-18 · diff ↗
  • 2.5.1
    2007-06-17 · diff ↗
  • 0.5.1
    2007-06-10 · diff ↗
  • 0.5
    2007-06-01 · diff ↗
  • R
    R 2.5.0 released · 2007-04-24
  • 2.5.0
    2007-01-01
  • R
    R 2.4.0 released · 2006-10-03

Package metadata

First published
2007-06-01
Total releases
71 / 19 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1
Bundled data
599 KB / 11 files
Download size
6.0 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("ggplot2")
Pedersen, T. L., Posit, PBC, Chang, W., Dunnington, D., Henry, L., Takahashi, K., Wickham, H., Wilke, C., Woo, K., Yutani, H., & van den Brand, T. (2026). ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics (Version 4.0.3) [Computer software]. https://doi.org/10.32614/CRAN.package.ggplot2

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ggplot2 version 4.0.3 [Data set]. HJJB, LLC. Data release v2026-08-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy