A picture plus 1000 words
Showing and telling
Advice
Introductory
Better than two pictures or 2000 words.
What it is
“A picture is worth a thousand words,” but pictures and words aren’t substitutes. They complement each other. A graph shows patterns, magnitudes and relationships at once. Words explain what the reader should look at, what the axes mean, why the pattern matters and what isn’t shown. One graph plus a good explanation communicates more than two graphs without commentary, or two thousand words without a graph.
Why it matters
Statistical reports often fail in one of two ways. There are walls of graphs with minimal captions, so readers don’t know what to look for. Or there are walls of text describing patterns a single figure would make obvious. Graphs without words are ambiguous: the same pattern can be read many ways. Words without graphs are abstract and hard to check. Each needs the other.
How it works
Good pairings follow simple rules:
- The caption says what to see, not just what is plotted: income rises with education within each group, but the groups differ in level.
- Annotations on the graph point at the key features.
- The text explains why the pattern matters and what alternative explanations there might be.
Simulated example
Simulated data containing a Simpson’s paradox. Look at the bare picture, then add the words. With the colors and annotations, the same picture tells a clear story.
Show simulation code
The R version uses base R, and the Python version uses NumPy and Matplotlib. Where the simulation draws random numbers, each language draws its own, so exact numbers differ slightly but show the same pattern. The numbered markers in the R code are explained under it.
import {rng, range, lm, fmt} from "../js/stats.js"
viewof words = Inputs.toggle({label: "Add the 1000 words (grouping, annotation, caption)", value: false})
viewof seed = Inputs.range([1, 500], {value: 73, step: 1, label: "Random seed"})
simpson = {
const r = rng(seed);
return ["Clinic A", "Clinic B", "Clinic C"].flatMap((g, k) => range(60).map(() => {
const x = r.normal(2 + 2.5 * k, 0.8);
return {group: g, x, y: 10 - 3 * k + 1.2 * (x - 2 - 2.5 * k) + r.normal(0, 0.7)};
}));
}
overall = lm(simpson.map(d => d.x), simpson.map(d => d.y))
Plot.plot({
ariaLabel: "A picture plus 1000 words: simulation chart",
ariaDescription: "Horizontal axis: Dose. Vertical axis: Outcome. The chart updates with the controls above it, and the summary below the charts states the result in words.",
height: 320,
grid: true,
x: {label: "Dose"},
y: {label: "Outcome"},
color: words ? {legend: true, range: ["#2166ac", "#d6604d", "#1a9850"]} : undefined,
marks: [
Plot.dot(simpson, {x: "x", y: "y", r: 2.5, fill: words ? "group" : "#777"}),
words ? Plot.linearRegressionY(simpson, {x: "x", y: "y", stroke: "group", ci: 0}) : null,
Plot.linearRegressionY(simpson, {x: "x", y: "y", stroke: "currentColor", strokeDasharray: "4 3", ci: 0}),
words ? Plot.text([{x: 7.5, y: 9.5}], {x: "x", y: "y", text: () => "Within each clinic,\nmore dose → better outcome", textAnchor: "start", fontSize: 11}) : null
]
})# A picture plus 1000 words: the same scatterplot, with and without words.
1words <- TRUE # add grouping and annotation
2set.seed(73)
# Three clinics: within each, more dose means a better outcome
clinic <- rep(c("Clinic A", "Clinic B", "Clinic C"), each = 60)
k <- rep(0:2, each = 60)
x <- rnorm(180, 2 + 2.5 * k, 0.8)
3y <- 10 - 3 * k + 1.2 * (x - 2 - 2.5 * k) + rnorm(180, 0, 0.7)
cat("Slope ignoring clinics:", round(coef(lm(y ~ x))[[2]], 2), "\n")
cat(
"Slope within clinics:",
round(coef(lm(y ~ x + clinic))[["x"]], 2), "\n"
)
cols <- c("#2166ac", "#d6604d", "#1a9850")
4plot(x, y,
pch = 19, col = if (words) cols[k + 1] else "grey40",
xlab = "Dose", ylab = "Outcome"
)
abline(lm(y ~ x), lty = 2)
5if (words) {
for (j in 0:2) {
abline(lm(y[k == j] ~ x[k == j]),
col = cols[j + 1],
lwd = 2
)
}
legend("topright", unique(clinic), col = cols, pch = 19, bty = "n")
text(7.5, 9.5, "Within each clinic,\nmore dose -> better outcome",
adj = 0, cex = 0.8
)
}- 1
- The page’s control: whether to add the words (grouping and annotation).
- 2
- Fixes the random numbers so the run is reproducible.
- 3
- Three clinics: within each, more dose means a better outcome, but clinics with higher doses have worse outcomes overall.
- 4
- The picture alone, with one overall line that slopes the wrong way.
- 5
- The thousand words: colors, per-clinic lines, a legend and a sentence that says what to see.
# A picture plus 1000 words: the same scatterplot, with and without words.
import numpy as np
import matplotlib.pyplot as plt
words = True # add grouping and annotation
rng = np.random.default_rng(73)
# Three clinics: within each, more dose means a better outcome
k = np.repeat([0, 1, 2], 60)
x = rng.normal(2 + 2.5 * k, 0.8)
y = 10 - 3 * k + 1.2 * (x - 2 - 2.5 * k) + rng.normal(0, 0.7, 180)
overall = np.polyfit(x, y, 1)
X = np.column_stack([x, k == 0, k == 1, k == 2])
within = np.linalg.lstsq(X, y, rcond=None)[0][0]
print(f"Slope ignoring clinics: {overall[0]:.2f}")
print(f"Slope within clinics: {within:.2f}")
cols = np.array(["#2166ac", "#d6604d", "#1a9850"])
plt.scatter(x, y, c=cols[k] if words else "0.25", s=12)
xs = np.linspace(x.min(), x.max(), 2)
plt.plot(xs, np.polyval(overall, xs), "k--")
if words:
for j, name in enumerate(["Clinic A", "Clinic B", "Clinic C"]):
fit = np.polyfit(x[k == j], y[k == j], 1)
xj = np.array([x[k == j].min(), x[k == j].max()])
plt.plot(xj, np.polyval(fit, xj), color=cols[j], linewidth=2,
label=name)
plt.text(7.5, 9.5, "Within each clinic,\nmore dose -> better outcome")
plt.legend()
plt.xlabel("Dose")
plt.ylabel("Outcome")
plt.show()Key takeaways
- Graphs and words complement each other. Use both.
- Captions should say what to see, not just what is plotted.
- Annotate the key feature directly on the graph.
Source
- Andrew Gelman, The best data visualizations… (2011).