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: 86 commits vs 19.
  • ggplot2 is downloaded 7.9× as often on CRAN (471.1K vs 59.9K 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
471.1K 59.9K
Commits, last 12 months
86 19
Contributors
354 57
Forks
2.1K 640
Show data as a table
ggplot2 vs plotly (R) by the numbers
Metricggplot2plotly (R)
GitHub stars7,0052,682
CRAN downloads / week471,05159,895
Commits, last 12 months8619
Contributors35457
Forks2,125640

Development activity

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

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

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
StatusActiveActive
Latest releasev4.0.3 ()v4.12.1 ()
Last commit
Repository created
Open issues76715
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