2025-06-01

Grammar of Graphics

Table of Contents

The Grammar of Graphics is a book by Leland Wilkinson that gives a vocabulary/grammar for creating visualizations.

Some libraries that follow the GoG approach are:

See also:

1. Hierarchy of Graphic Elements

https://www.practicaldatascience.org/notebooks/class_5/week_1/2.3.1_plotting_with_seaborn.html

  • Position
  • Size
  • Color
  • Shape

To encode the information we care about most use Position and then size, and so on.

2. Grammar of Graphics in Seaborn

Use the object interface of Seaborn. The api is composable and more intuitive.

https://seaborn.pydata.org/tutorial/objects_interface.html


You can send your feedback, queries here