Why we visualize data
August 24, 2026
Special Faculty and Lecturer, Carnegie Mellon Statistics & Data Science
Two datasets can share nearly identical means, standard deviations, and correlations—and look nothing alike.
Always visualize your data before analyzing it.
Lectures on Mondays and Wednesdays
Before Wednesday: work through Lab 0 · Getting R, RStudio, and Quarto running. About 20 minutes, not graded. Any questions about it can be posted to Piazza.
Work with tidy data and reproducible workflows.
Create high-quality statistical graphics.
Critique and write about visualizations.
Use visual evidence to support a clear recommendation.
Our running example is the NOAA Storm Events Database.
One row is an event report—not one storm system, one county, one day, or one insurance claim.
Choose one NOAA column. Explain what one value means and name one conclusion that would be invalid if you misunderstood the observational unit.
One NOAA event report
| begin_dt | state | county_zone_name | event_type | damage_property_raw | deaths_direct |
|---|---|---|---|---|---|
| Jan 01, 2024 00:00 | Maryland | Garrett | Winter Weather | 0.00K | 0 |
NOAA publishes damage amounts as character strings with suffixes. The course file keeps both the raw field and a parsed dollar value.
A graphic combines:
dataThe data alone do not tell ggplot2 what to draw.
The geometry is a bar. The columns are mapped to x- and y-position.
Ordering turns an unordered list into a visible ranking.
event_type_plot <- type_counts |>
mutate(event_type = fct_reorder(event_type, n)) |>
ggplot(aes(x = n, y = event_type)) +
geom_col(fill = gold) +
scale_x_continuous(labels = comma) +
labs(
title = "Thunderstorm wind and hail dominate event reports",
subtitle = "NOAA Storm Events, 2024",
x = "Number of event records",
y = NULL
)
event_type_plot
Change the plot to answer a question about state or source. Identify the data, geometry, and aesthetic mapping you changed.
Michael Florent van Langren published one of the first known statistical graphics in 1644. It compared estimates of the longitudinal distance between Toledo and Rome.
Snow mapped deaths around the Broad Street pump to connect a spatial pattern to a public health hypothesis.
The graphic combines location, direction, army size, time, and temperature in one coherent account.
Nightingale used a statistical graphic to make preventable mortality visible to a policy audience.
These graphics do more than decorate a result:
A conventional time-series chart of new U.S. COVID-19 cases beside the New York Times spiral version of the same data.
Does the form make comparison easier, or does it only make the chart memorable?
An infographic can combine data, annotation, and structure for a broad audience. The same standards still apply: clear comparisons, proportional encodings, and an honest connection between evidence and claim.
Useful graphics balance:
Visual polish matters only after the evidence and comparison are sound.
Rewrite “Event type counts” as a title that states the main finding. Then add one sentence explaining the denominator: these are NOAA event records, not unique storms.
Next time: one-variable categorical distributions, proportions, and uncertainty.
Before Sunday: Lab 0 · Getting R, RStudio, and Quarto running. HW1 opens Sunday, August 23.
MaDS Data Visualization · Week 1