A lollipop chart compares numeric values with vertical stems ending in prominent markers. It offers a contemporary alternative to a bar chart while keeping category differences easy to read. section 10.4.3
A practical NBA use compares average team payrolls across three outcomes: no playoffs, made playoffs, and won the title. Categories occupy the x-axis; average payroll occupies the y-axis. section 10.4 section 10.4.3
Build the chart by preparing grouped summaries and then layering the stems, markers, labels, and scales:
- Remove missing values where necessary, group payrolls by season-ending classification, and calculate the mean. section 10.4.3
- Create readable labels such as $42M by rounding the mean and concatenating a dollar sign and M. section 10.4.3
- Use geom_segment() for stems from zero to each mean and geom_point() for the circular markers. section 10.4.3
- Improve interpretation with ordered x-axis categories, shortened dollar-scale y-axis labels, colors, and text annotations. section 10.4.3
NBA payroll comparison
A chart for the 1999–2000 and 2000–01 seasons places No playoffs, Made playoffs, and Won title side by side. The first two values are category averages, while the championship value represents the single winning team’s payroll.
Across 2000–2017, the visualization suggests that higher payrolls align more clearly with playoff qualification and championship outcomes, particularly after 2006; the pattern is associative, not proof of causation. section 10.5 section 20.9
