Post #1343914
2025-05-30 17:25 UTC
I was going to sit down and learn the {plotnine} python library today, but turns out there's nothing really to learn—it's literally {ggplot2} code wrapped in parentheses. If you know {ggplot2} in R, turns out you also know how to make plots on Python!
#Rstats #plotnine #Python
Replies (4)
-
@mdsumner@rstats.me 2025-05-30 17:32
@LeafyEricScott yeah I found that weird, page of code in Polars book looms like R
-
@bentoh@mastodon.online 2025-05-30 17:38
@LeafyEricScott it's slightly unfamiliar because you have to prefix everything with `p9.` 😅 (or import the `aes` and geoms and whatnot specifically)
-
@jmclawson@hcommons.social 2025-05-30 18:12
@LeafyEricScott This was such a nice surprise. Looking at a Python syllabus, I thought {plotnine} would be my weakest area, only to discover it was my strongest! 😄
-
@damien_dupre@datasci.social 2025-05-31 19:22
That's the reason why I'm teaching it, and is much easier to learn than the other python visualisation packages. Here are my slides if you're interested: https://damien-dupre.github.io/BAA1030/lectures/lecture_9