# Grammar of Graphics

> Source: https://modeladay.com/models/grammar-of-graphics/
> Category: principle | Topics: science, creative, cognition | Difficulty: 3/5

## Definition

Grammar of graphics describes charts as composable parts. Select data and statistical transformations, map variables to visual properties, and realize the chart with marks, scales and coordinates.

## Core Rule

Grammar of graphics describes charts as composable parts. Select data and statistical transformations, map variables to visual properties, and realize the chart with marks, scales and coordinates.

## Opening Context

Imagine a city with three library branches. At the weekly meeting, the operations lead puts up a bar chart, and the East branch towers over the other two for waiting time. Everybody looks at the East branch manager.

You can see which bar is tallest from across the room. But can the chart tell you that people waited longer at East?

The Grammar of Graphics breaks a statistical chart into pieces you can put together and check separately. We'll take that chart apart with the manager, then see where the method helps and what decisions it leaves to you.

## How It Works (Preview)

The manager pulls up the records rather than arguing about the bar. Each row is one reader's wait in minutes. Branches go along the horizontal axis, and the height of a bar represents waiting. The question is what happened to those minutes on their way into a bar.

The tool used its default and added every reader's waiting time for the week. East gets the most visitors of the three, so its total is high. More people can push the bar up even if the wait per person stays the same.

## When It Fails (Preview)

Taking a chart apart tells you how it was made. You still have to decide how useful and readable the result is.

## Full Lesson, Audio & Practice

Get the full Grammar of Graphics breakdown, 5-minute audio lesson, interactive mechanism animation, and decision checklist in the ConceptFlow app:
- iOS App Store: https://apps.apple.com/app/conceptflow-mental-models/id6756862333
- Google Play: https://play.google.com/store/apps/details?id=com.juxianyp.conceptflow
- Web page: https://modeladay.com/models/grammar-of-graphics/

## Related Mental Models

- [Graphical Perception](https://modeladay.com/models/graphical-perception/)
- [Small Multiples](https://modeladay.com/models/small-multiples/)
- [Data-Ink Ratio](https://modeladay.com/models/data-ink-ratio/)
