ggplot2 vs plotnine
A data-driven comparison of two data visualization tools: popularity, development activity, licensing and installation. Updated .
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
Show data as a table
| Metric | ggplot2 | plotnine |
|---|---|---|
| GitHub stars | 7,005 | 4,770 |
| Commits, last 12 months | 86 | 490 |
| Contributors | 354 | 104 |
| Forks | 2,125 | 255 |
Development activity
Commits per month to each default branch, last 12 complete months.
- ggplot2
- plotnine
Show data as a table
| Month | ggplot2 | plotnine |
|---|---|---|
| Oct 2025 | 29 | 3 |
| Nov 2025 | 12 | 4 |
| Dec 2025 | 20 | 3 |
| Jan 2026 | 1 | 35 |
| Feb 2026 | 4 | 6 |
| Mar 2026 | 2 | 20 |
| Apr 2026 | 4 | 24 |
| May 2026 | 0 | 40 |
| Jun 2026 | 0 | 49 |
| Jul 2026 | 0 | 31 |
| Aug 2026 | 0 | 156 |
| Sep 2026 | 14 | 119 |
Side by side
| Attribute | ggplot2 | plotnine |
|---|---|---|
| Description | A plotting system based on the grammar of graphics. | Grammar of graphics for Python, based on R's ggplot2. |
| Category | R data visualization packages | Python data visualization libraries |
| License | MIT | MIT |
| Language | R | Python |
| Status | Active | Active |
| Latest release | v4.0.3 () | v0.15.8 () |
| Last commit | ||
| Repository created | ||
| Open issues | 76 | 73 |
| 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.