Key differences

  • ggplot2 has 2.6× as many GitHub stars as plotly (R) (7K vs 2.7K).
  • ggplot2 had more development activity over the last 12 months: 72 commits vs 19.
  • ggplot2 is downloaded 9.3× as often on CRAN (494.7K vs 53K per week).
  • Both are released under the MIT license.
  • ggplot2 is the older project: its repository was created in 2008, plotly (R)'s in 2013.

By the numbers

  • ggplot2
  • plotly (R)
GitHub stars
7K 2.7K
CRAN downloads / week
494.7K 53K
Commits, last 12 months
72 19
Contributors
355 57
Forks
2.1K 641
Show data as a table
ggplot2 vs plotly (R) by the numbers
Metricggplot2plotly (R)
GitHub stars7,0292,684
CRAN downloads / week494,71153,029
Commits, last 12 months7219
Contributors35557
Forks2,125641

Development activity

Commits per month to each default branch, last 12 complete months.

  • ggplot2
  • plotly (R)
01020 Nov 2025 Dec Jan 2026 Feb Mar Apr May Jun Jul Aug Sep Octggplot2plotly (R)
01020 Nov 2025 Feb 2026 May Aug ggplot2plotly (R)
Show data as a table
ggplot2 vs plotly (R): commits per month
Monthggplot2plotly (R)
Nov 2025120
Dec 2025200
Jan 2026113
Feb 202640
Mar 202620
Apr 202643
May 202600
Jun 202601
Jul 202602
Aug 202600
Sep 2026140
Oct 2026150

Side by side

Attributeggplot2plotly (R)
DescriptionA plotting system based on the grammar of graphics.Interactive charts (including adding interactivity to ggplot2 output), cartograms and simple network diagrams
CategoryR data visualization packagesR data visualization packages
LicenseMITMIT
LanguageRR
StatusActiveMaintained
Latest releasev4.0.4 ()v4.12.1 ()
Last commit
Repository created
Open issues81716
Install
install.packages("ggplot2")
install.packages("plotly")

Which should you choose?

Popularity and activity are only part of the story. Consider which ecosystem you work in, the chart types and interactions you need, how much data you render, and whether the license fits your project. Both tool pages list alternatives if neither is quite right.

  • ggplot2

    A plotting system based on the grammar of graphics.

    7K starsRMIT

  • plotly (R)

    Interactive charts (including adding interactivity to ggplot2 output), cartograms and simple network diagrams

    2.7K starsRMIT

More comparisons