20

Using the Grammar of Graphics in Python with plotnine

Coined from the Grammar of Graphics as implemented in R, ggplot2 has become the tool of choice for many data visualization professionals. Its popularity stems from its consistent underlying graphics grammar, making the syntax reasonable to learn and master. Once you understand the basics, it’s possible to create different visualizations using the same syntax structure.

One feature of ggplot2 that makes life easier for developers is its layering approach. This feature allows the user to add or remove elements at will. Users can plot simple graphs as well as create complex custom visualizations thanks to the higher level of control provided by this approach.

This is not to say that it is ...

Get Extending Power BI with Python and R - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.