Key differences

  • ggplot2 has 1.5× as many GitHub stars as plotnine (7K vs 4.8K).
  • plotnine had more development activity over the last 12 months: 490 commits vs 86.
  • Both are released under the MIT license.
  • ggplot2 is written primarily in R, plotnine in Python.
  • ggplot2 is the older project: its repository was created in 2008, plotnine's in 2017.

By the numbers

  • ggplot2
  • plotnine
GitHub stars
7K 4.8K
Commits, last 12 months
86 490
Contributors
354 104
Forks
2.1K 255
Show data as a table
ggplot2 vs plotnine by the numbers
Metricggplot2plotnine
GitHub stars7,0054,770
Commits, last 12 months86490
Contributors354104
Forks2,125255

Development activity

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

  • ggplot2
  • plotnine
0100200 Oct 2025 Nov Dec Jan 2026 Feb Mar Apr May Jun Jul Aug Sepggplot2plotnine
0100200 Oct 2025 Jan 2026 Apr Jul ggplot2plotnine
Show data as a table
ggplot2 vs plotnine: commits per month
Monthggplot2plotnine
Oct 2025293
Nov 2025124
Dec 2025203
Jan 2026135
Feb 202646
Mar 2026220
Apr 2026424
May 2026040
Jun 2026049
Jul 2026031
Aug 20260156
Sep 202614119

Side by side

Attributeggplot2plotnine
DescriptionA plotting system based on the grammar of graphics.Grammar of graphics for Python, based on R's ggplot2.
CategoryR data visualization packagesPython data visualization libraries
LicenseMITMIT
LanguageRPython
StatusActiveActive
Latest releasev4.0.3 ()v0.15.8 ()
Last commit
Repository created
Open issues7673
Install
install.packages("ggplot2")
pip install plotnine

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

  • plotnine

    Grammar of graphics for Python, based on R's ggplot2.

    4.8K starsPythonMIT

More comparisons