3  Make a Plot

3.1 How ggplot Works

Perhaps this section should be how plotnine works, but ggplot() (or .ggplot() still applies, so I keep the original section title from Healy (2026). Everything from the original section applies here.

3.2 Tidy Data

While the term tidy data comes from Wickham (2014) and is therefore perhaps more often associated with R, it describes ideas that predate Wickham (2014) and applies equally well to Python Polars.