liveBook · Manning

Pyramid plot

As explained in Statistics Slam Dunk

A pyramid plot is a visualization that uses mirrored or stacked horizontal bars to compare distributions across ordered categories.

A pyramid plot compares two distributions across ordered categories by mirroring horizontal bars around zero. It resembles a stacked bar chart rotated 90 degrees, with each side representing a different measure or category. section 18.3

NBA salary-cap history

A pyramid plot displays year-over-year NBA salary-cap increases from 1984-85 through 2020-21, contrasting real and inflation-adjusted dollars.

How Statistics Slam Dunk covers it

How deep it goes
Explains sign conversion, reshaping, axis labeling, and ggplot2 construction, stopping short of statistical modeling.
Examples
Uses NBA seasons, real dollars, adjusted dollars, mirrored bars, and million-dollar axis labels.
What it assumes
Assumes basic R data frames and plotting while demonstrating data reshaping and negative-value encoding.
What you can do after
Build it from scratch in R by transforming paired measures and plotting them with ggplot2.
How it connects
Connects hierarchical data, stacked bar charts, data wrangling, pivot_longer(), and ggplot2.

Also explained in

Compare how 2 books explain pyramid plot →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Statistics Slam Dunk. The section links point to the parts of the book it draws on.