Showing relationships: scatter plots, correlation and many variables, without implying causes that are not there

TL;DR

Difficulty: Intermediate

A scatter plot is the honest default for two quantities: one dot per thing, both numbers on position, the scale the eye reads best.

  • Read it for form, direction, strength and exceptions. Put the correlation and the slope in the caption, because the eye underrates moderate correlations.
  • Always look at the dots: Anscombe's quartet and the Datasaurus Dozen share their statistics and look nothing alike.
  • Check the third variable before you write the title. Colour by group or use small multiples. At the example roaster, pooling made longer roasts look worse, while inside every coffee they rate better.
  • Fix overplotting with transparency, jitter, hexagonal bins or contours. Prefer a second scatter plot to a bubble chart.
  • For many variables, use a scatter plot matrix or a reordered correlogram to explore, and present with plain scatter plots.
  • The verb ladder: moves with, predicts, drives. Each rung needs more evidence, and one scatter plot only earns the first.

Do cafés further away order less? Do longer roasts please customers? Does one plan lose subscribers? Every business asks whether two things move together, and every chart that answers risks saying they cause each other. Here is how to show relationships between two or many variables honestly, from the scatter plot and the correlation coefficient to small multiples, with a simple test for the verb in your title.

The question behind every scatter plot

Sooner or later every business asks a question with two things in it. Do cafés further away order less? Do longer roasts please customers more? Does the Explorer plan lose us subscribers? Each one asks whether two quantities move together, and each one hides a second, more dangerous question: if they do, is one of them the reason?

This chapter is about showing the first question honestly without answering the second by accident. You will learn the scatter plot properly, what a correlation coefficient measures and what it misses, what a trend line claims, how to rescue a chart drowning in dots, and how to show four, six or twenty variables at once. Above all, you will learn to write a chart title that says exactly as much as the data has earned, and not a word more.

It builds on the chapter on distributions, because a relationship is really a distribution in two dimensions, and on the chapter on scales and axes, because a scatter plot is nothing but two position scales at right angles.

Example: the business in this series is invented. Ridgeway Coffee is a speciality coffee roaster in Oxford (ridgewaycoffee.example) with £2.4 million in yearly revenue: subscriptions 45%, one off online orders 25%, wholesale to 140 cafés 30%. Maya founded it, and Joe is the analyst. Maya's standing question is "Should we push Explorer harder, or is it costing us customers?" The datasets in this chapter (the cafés' drive times and orders, 48 roast batches, 24 months of followers and subscribers) are derived for this example and labelled as such.

The verb in your chart title is a claim

Here is the idea I want you to take away even if you read nothing else. The data on a relationship chart is rarely the problem. The verb in the title is. "Distance moves with order size", "distance predicts order size" and "distance drives order size" describe the same scatter plot, and they make three very different promises. The first says the dots slope. The second says you could use one number to guess the other on data you have not seen yet. The third says that if you changed the distance, the orders would change.

Readers act on the verb. A sales manager who reads "drives" stops calling distant cafés. So I treat the verb as a claim that has to be earned, step by step, like a ladder:

  • No clear link: the dots show no pattern worth naming. Say so, and show the cloud.
  • Moves with (or "goes with", "is associated with"): the dots slope, and the slope survives a look at the obvious third variables.
  • Predicts: the pattern holds on new data, and the supposed cause comes first in time.
  • Drives (or "causes", "lifts", "cuts"): someone changed the cause on purpose, in a test or a clean natural experiment, and the effect followed.

Each rung needs more evidence than the one below it, and a single scatter plot only ever reaches the second rung. I call this the verb ladder, and it is the test I run on every relationship chart before it leaves the building.

Tap or click to enlarge

Example: four titles for one café chart

Joe plots the 140 wholesale cafés: drive time from the roastery against the average weekly order. The dots slope down. He drafts four titles:

  1. "Distant cafés order less, so stop chasing them." This climbs to the top rung and adds an action. Nothing in a single scatter plot earns it.
  2. "Distance drives order size." Top rung again, without the test.
  3. "Distance predicts order size." Third rung. Joe has not checked new data, and he has not checked what else differs between near and far cafés.
  4. "Cafés further from the roastery order a little less coffee." Second rung, and the word "little" is honest about the size of the effect.

Joe picks the fourth. Later in this chapter you will see why that was wise: a good part of the slope turns out to belong to a third variable.

A scatter plot puts one dot per thing on two position scales

A scatter plot draws each item (a café, a batch, a customer) as one dot. Its position along the horizontal axis shows one quantity, its position up the vertical axis shows another. You read it as "y against x": the variable on the vertical axis plotted against the variable on the horizontal one.

Why does this work so well? Because position along a common scale is the most accurate thing the eye can judge. Cleveland and McGill ranked the ways a chart can encode a number, and position on a common scale came first, ahead of length, angle, area and colour1. A scatter plot spends its two best channels on the two numbers you care about. Claus Wilke opens his chapter on associations with exactly this display, as the default for two quantitative variables2. Cole Nussbaumer Knaflic notes that scatter plots are more common in science than in business, which is partly why some business audiences find them hard at first, and shows how a reference line (an average, say) helps a business reader see which points matter3.

Three conventions help:

  • The thing you think might explain goes on the horizontal axis, the thing you want to understand goes on the vertical axis. This is a reading habit, not proof of cause.
  • Both axes start where the data needs them. A scatter plot judges position, not length, so the axes do not have to start at zero, unlike a bar chart. They should, however, frame the data without huge empty margins, for a reason you will see in the section on perception.
  • Each dot is one real thing. If a dot is an average of many things, say so in the caption, because averages hide the spread you would otherwise see.

Example: Joe's café scatter plot

The example dataset has 140 cafés. Drive times run from 6 to 163 minutes, with a mean of 57. Weekly orders run from 2.0 to 6.7 kg, with a mean of 4.5 kg. Joe puts drive time on the horizontal axis (the candidate explanation) and weekly kilograms on the vertical axis (the thing Maya wants to grow).

Scatter plot of the 140 wholesale cafés in the example. Horizontal axis: drive time from the roastery in minutes, 6 to 163. Vertical axis: average weekly order in kilograms, 2.0 to 6.7. The cloud slopes gently downwards with wide scatter. Correlation r is minus 0.60. The fitted line falls by about 0.78 kg for every extra hour of drive time. Tap or click to enlarge

What the chart shows: a cloud that sinks gently from left to right, wide at every drive time. A café 20 minutes away might order anything from about 3.7 to 6.0 kg. What it does not show: why. It does not show how long each café has been a customer, how big it is, or who sold to it. Keep that list in mind, because the rest of the chapter is about it.

Read a scatter plot for form, direction, strength and exceptions

A scatter plot answers four questions, and it pays to ask them in order.

  1. Form: is the pattern a straight band, a curve, two separate clouds, or no shape at all?
  2. Direction: as the horizontal value rises, does the vertical one tend to rise (positive) or fall (negative)?
  3. Strength: how tightly do the dots hug the pattern? A thin band is strong, a fat cloud is weak.
  4. Exceptions: which dots sit far from the rest, and is there a story in them?

Form comes first, because a curve has no single direction and two clouds may each hide their own.

Example: the four questions on the café chart

Form: roughly a straight band, with no obvious curve and no separate clusters. Direction: negative, further cafés order less on average. Strength: moderate, the band is wide. Exceptions: four cafés more than two hours away order between 4.3 and 4.9 kg, well above the line, which expects about 3.3 kg out there. Joe makes a note to look at those: are they large cafés, long standing accounts, or one chain?

The correlation coefficient measures straight line strength, and only that

The correlation coefficient, usually written rr, puts a single number on direction and strength. It runs from −1-1 (a perfect falling straight line) through 0 (no straight line relationship) to +1+1 (a perfect rising straight line). The Pearson formula, the one spreadsheets use, is (Foundations: correlation):

r=∑i=1n(xi−xˉ)(yi−yˉ)∑i=1n(xi−xˉ)2 ∑i=1n(yi−yˉ)2r = \frac{\sum_{i=1}^{n} (x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum_{i=1}^{n} (x_i - \bar{x})^2}\,\sqrt{\sum_{i=1}^{n} (y_i - \bar{y})^2}}

Here nn is the number of items, xix_i and yiy_i are the two values of item ii, xˉ\bar{x} and yˉ\bar{y} are the means of the two variables (Foundations: the mean), and ∑\sum adds up over all items.

Read it as a story in three steps. The top multiplies each item's distance from the mean on one variable by its distance from the mean on the other. When both are above average, or both below, the product is positive. When one is above and the other below, it is negative. The sum tells you which kind wins. The bottom divides by the spread of each variable, so the answer no longer depends on units. As Wilke points out, that is why shifting or rescaling either variable leaves rr unchanged: minutes or hours, kilograms or bags, the coefficient is the same2.

Example: five cafés worked by hand

Joe picks five cafés to show Maya how the number is built. Drive times in minutes are 10, 20, 40, 60 and 90, so xˉ=44\bar{x} = 44. Weekly orders in kilograms are 7, 5, 6, 3 and 2, so yˉ=4.6\bar{y} = 4.6.

Caféxi−xˉx_i - \bar{x}yi−yˉy_i - \bar{y}product(xi−xˉ)2(x_i - \bar{x})^2(yi−yˉ)2(y_i - \bar{y})^2
A−34-342.42.4−81.6-81.61,1565.76
B−24-240.40.4−9.6-9.65760.16
C−4-41.41.4−5.6-5.6161.96
D16−1.6-1.6−25.6-25.62562.56
E46−2.6-2.6−119.6-119.62,1166.76
Sum−242.0-242.04,12017.20
r=−242.04,120×17.20=−242.064.19×4.147=−0.91r = \frac{-242.0}{\sqrt{4{,}120} \times \sqrt{17.20}} = \frac{-242.0}{64.19 \times 4.147} = -0.91

Every product is negative, so every café pulls the same way: nearer means more. Five hand picked cafés give a tidy −0.91-0.91. All 140 cafés give −0.60-0.60, because real data is messier than a demonstration. In a spreadsheet, =CORREL(A2:A141, B2:B141) does the same sum in one go4.

What rr cannot tell you

Three limits matter in business:

  • Only straight lines. A perfect U shape, where both very short and very long roasts disappoint, can give rr close to zero. The relationship is strong, it is just not straight.
  • One outlier can make or break it. A single giant account far away can turn a −0.6-0.6 into a −0.3-0.3. Always look at the dots.
  • It says nothing about size. An rr of −0.60-0.60 does not tell Maya how many kilograms she loses per hour of drive. The slope of the fitted line does that (next sections).

Wilke adds one more: a correlation is an abstraction, and when you can show the raw dots, show them2.

Your eyes misjudge correlation, so give them help

Two findings from perception research change how I draw scatter plots.

First, people see moderate correlations as weaker than they are. Ronald Rensink and Gideon Baldridge measured how well people perceive correlation in scatter plots and found that perceived correlation follows a curve below the true value, and that people get better at telling two correlations apart the closer they are to 15. In practice, an rr of 0.5 tends to look weaker to readers than the number suggests.

Second, the frame changes the impression. William Cleveland, Persi Diaconis and Robert McGill showed that the same point cloud looks more strongly correlated when the axes are widened so the cloud shrinks inside a larger empty frame6. Pad the axes generously and your relationship looks stronger. Crop them tightly and it looks weaker.

So I do two things. I frame the data snugly and the same way every time, so nobody can accuse the chart of flattering. And I write the number into the caption, because the eye alone will not land on it.

Example: the caption Joe writes

Joe's chart frames drive times from 0 to 170 minutes and orders from 0 to 7 kg, which wraps the data without padding. Under the title he writes: "140 cafés. Correlation −0.60-0.60: a moderate link. Each extra hour of drive goes with about 0.8 kg less a week, on average." Now a reader who would have seen "a fuzzy cloud" knows it is a real, moderate pattern, and knows its size in kilograms.

Same numbers, different pictures: Anscombe and the Datasaurus

In 1973 the statistician Francis Anscombe published four small datasets of 11 points each. They share the same means, the same variances, the same correlation of about 0.82 and the same fitted line. Plotted, they look nothing alike: one is a fair straight line cloud, one is a smooth curve, one is a perfect line knocked off course by one outlier, and one is a vertical stack of points with one far away point creating the entire "relationship"7. His argument was that a statistician should look at graphs before trusting numbers.

In 2017 Justin Matejka and George Fitzmaurice took the idea to its logical end with the Datasaurus Dozen: a set of datasets, starting from a drawing of a dinosaur, that share the same means, standard deviations and correlation to two decimal places, yet look like a star, a bullseye, parallel lines and more. They produced them by nudging points one at a time and keeping each move only if the summary statistics stayed the same8.

The lesson for a business is blunt. A dashboard tile that says "correlation 0.6" could be hiding any of these shapes. A summary is a compression, and compression throws things away.

Example: what the summary hid in the café data

Joe's summary table said r=−0.60r = -0.60 and nothing else. The scatter plot shows him what the number could not: the four distant cafés sitting far above the line. When he checks them, they are large cafés with more than 60 seats, and older accounts than most of their distant neighbours. That clue, invisible in the coefficient, leads straight to the third variable you will meet below.

What a fitted line claims, and what it does not

A trend line (a fitted line) is a summary drawn on top of the dots. The most common kind is the least squares straight line: the line that makes the squared vertical distances from the dots to the line as small as possible (Foundations: regression). Its equation is:

y^=a+b x\hat{y} = a + b\,x

Here y^\hat{y} is the value the line predicts for the vertical variable, xx is the horizontal value, aa is the intercept (where the line meets x=0x = 0) and bb is the slope (how much y^\hat{y} changes for one unit more of xx).

A fitted line makes exactly three claims: that a straight line is a fair summary of the form, that the slope is bb on average, and that this holds across the range of the data. It does not claim that any single item sits on the line, it does not claim the line continues beyond the data, and it does not claim cause.

When the form is curved, a straight line misleads. Wilke recommends a smoother instead, such as LOESS (locally estimated scatterplot smoothing), introduced by William Cleveland in 19799, which fits many small local lines and joins them into a curve10. He also warns that the same data can be smoothed in many ways, and that your software's default smoother shapes what you see10. Show a smoother as a guide, and never read its wiggles as facts.

Finally, a line drawn without uncertainty looks more certain than it is. Where precision matters, add a confidence band around the line, which shows the range the true line might plausibly take (Foundations: confidence intervals).

Example: the slope of the café line

For the 140 cafés, the least squares line (Foundations: regression) is:

y^=5.24−0.0129 x\hat{y} = 5.24 - 0.0129\,x

The slope says each extra minute of drive goes with 0.0129 kg less a week, which is about 0.78 kg for an extra hour. Applied: a café 30 minutes away is predicted at 5.24−0.0129×30=4.855.24 - 0.0129 \times 30 = 4.85 kg, a café 150 minutes away at 5.24−0.0129×150=3.315.24 - 0.0129 \times 150 = 3.31 kg.

What the line does not say: that a café four hours away would order 2.1 kg (there are no such cafés in the data, so the line knows nothing about them), that any particular café at 150 minutes orders 3.3 kg (the cafés out there range from 2.0 to 4.9 kg), or that moving a café closer would lift its order. Joe writes "on average" in the caption and stops the line at the last café.

Correlation is not causation: four other explanations

When two things move together, cause is only one explanation, and usually not the first to rule out. Before writing "drives", check the other four:

  1. A third variable (confounding). Something else drives both. Distant cafés may be newer accounts, and newer accounts order less, whatever their distance.
  2. Reverse direction. The supposed effect causes the supposed cause. Cafés that order a lot get more visits from Ridgeway's rep, not the other way round.
  3. Selection. The groups chose themselves. Customers who pick a plan differ from those who do not.
  4. Chance. Look at enough pairs of variables and some will correlate by luck. Tyler Vigen built a whole collection of such pairs, unrelated series that track each other closely11.

Epidemiology has thought about this longer than business. In 1965 Austin Bradford Hill set out viewpoints for judging whether an association is causal: among them its strength, its consistency across settings, the right order in time, a gradient where more of the cause brings more of the effect, plausibility, and evidence from experiment12. None is proof alone, and together they make a fine checklist for a marketing meeting. For the methods that get from correlation to a defensible causal estimate, propensity scores and instruments among them, see my article on causal inference in marketing.

Example: is Explorer costing Maya customers?

Explorer subscribers churn at 7.8% a month, Usual subscribers at 2.6%. With about 2,520 Usual and 1,080 Explorer subscribers, Explorer holds 30% of subscribers but about 56% of cancellations (roughly 84 of 150 a month). A bar chart of those two numbers will be read as "Explorer loses customers", which is the top rung of the verb ladder. Run the four checks:

  1. Third variable: who gets Explorer? If Explorer is popular as a gift, and gift subscriptions lapse when the gift runs out, the plan is carrying a gift effect. December sign ups are 2.6 times the monthly average, so gifts are not a small factor.
  2. Reverse direction: unlikely here, churn cannot cause plan choice. But a subscriber who is already drifting away might switch to Explorer for novelty before leaving.
  3. Selection: people who want a different coffee every time may be more restless by nature. The plan did not make them so.
  4. Chance: with 3,600 subscribers the gap is too large to be luck.

So the honest title is "Explorer subscribers leave about three times as often as Usual subscribers", which is rung two. Whether Explorer causes it needs either a comparison of like with like or a test. The chapter on exploring data before you present it goes looking for what really drives churn, and it finds something neither plan explains.

The third variable can reverse the whole picture

The most dramatic form of confounding has a name: Simpson's paradox. A relationship that runs one way in every group runs the other way when the groups are pooled. The best known example is the University of California, Berkeley's graduate admissions in 1973: pooled, women were admitted at a lower rate than men, yet department by department there was little or no disadvantage, and in several departments a small one for men. Women had applied more often to the departments that rejected most applicants13. The cause of the pooled gap was where people applied, not how they were judged.

On a scatter plot, the cure is visual: colour the dots by the suspect group, and draw a trend line for each group. Wilke shows exactly this move, colouring a scatter plot by a category to reveal that the overall trend is partly driven by the groups2.

Example: do longer roasts disappoint customers?

Ridgeway's head roaster logs 48 batches over a quarter: roast time in minutes, and the average rating customers gave that batch. Joe plots all 48 together.

Scatter plot of 48 roast batches in the example, pooled. Horizontal axis: roast time in minutes, 9.4 to 14.9. Vertical axis: average customer rating out of 5, about 3.5 to 4.7. The points fall from top left to bottom right. Correlation r is minus 0.75, and the fitted line drops about 0.15 rating points per extra minute. Tap or click to enlarge

The picture is clear and wrong. Pooled, r=−0.75r = -0.75 and the line falls about 0.15 rating points per extra minute. A tempting title: "Longer roasts score worse. Roast shorter." Joe colours the dots by origin before writing it.

The same 48 roast batches, coloured by origin, 16 each. Ethiopian batches roast 9.4 to 11.3 minutes and average 4.42. Colombian batches roast 11.4 to 13.2 minutes and average 4.04. House blend batches roast 13.1 to 14.9 minutes and average 3.72. Inside every origin the trend line rises, by about 0.11 to 0.20 rating points per extra minute, with correlations between 0.65 and 0.77. Tap or click to enlarge

Now three separate clouds appear. Ethiopian batches roast shortest (9.4 to 11.3 minutes) and score highest (4.42 on average). House blend batches roast longest (13.1 to 14.9 minutes) and score lowest (3.72). Inside each origin, longer roasts score better, by 0.11 to 0.20 points per minute. The pooled slope was not about roast time at all. It was about which coffee was in the drum, and which customers drink it.

The title Joe writes: "Within each coffee, slightly longer roasts rate better." Even that is rung two. Customers rating Ethiopian are often Explorer subscribers, so the groups differ in who tastes as well as what is tasted. The roaster could reach rung four with a small test: split a lot of green beans, roast half a minute longer on alternate batches, and compare ratings.

Two lines rising together prove almost nothing

Time is the most common hidden third variable. Any two things that grow over the same months will correlate strongly, whether or not they have anything to do with each other. A dual axis chart, with one series read against the left axis and the other against the right, makes this worse: the designer chooses both scales, so the designer chooses where the lines cross and how parallel they look.

The case against dual axes is well argued. Knaflic advises against a secondary vertical axis because readers must work out which series belongs to which axis, and she adds that putting two series on the same axis can imply a relationship that does not exist14. She suggests labelling one series directly or splitting the chart into two panels that share the horizontal axis. Stephen Few is the fair witness on the other side: in his earlier books he used dual scaled charts himself and considered them a viable option, then in 2008 reasoned through the problem again and concluded he could not think of a case without a better alternative15. The argument for dual axes is real (two related measures in different units, one compact chart); the argument against is that the scales are arbitrary and the crossing points mean nothing.

My view: for relationships, never. Index both series to a common start (Foundations: indexing and base rates), or use two panels. And if the question is whether one moves with the other, test the changes, not the levels.

Example: do Instagram followers bring subscribers?

Over 24 months, from January 2023 to December 2024 (example data), Ridgeway's Instagram followers grow from 4,014 to 9,402 and active subscribers from 2,931 to 3,617. Indexed to 100 in January 2023:

Line chart of 24 months, January 2023 to December 2024, both series indexed to 100 in January 2023. Instagram followers rise from 100 to 234. Active subscribers rise from 100 to 123. The levels correlate at r 0.99, but the month on month changes correlate at minus 0.23, which is no useful relationship. Tap or click to enlarge

The levels correlate at r=0.99r = 0.99. A marketing slide would love that. Now Joe correlates the month on month changes instead: how many followers were gained each month against how many subscribers were gained that month. That correlation is −0.23-0.23, no useful link. Both lines rise because the business grows, and time does the rest. The honest title: "Followers and subscribers both grew. Months with more new followers did not bring more new subscribers."

Too many dots: overplotting and its fixes

Overplotting means dots lying on top of each other, so the chart hides how many there are. It happens with big datasets, and, as Wilke shows, also with small ones when values are rounded so many items share the same coordinates16. Wilke's chapter on overlapping points sets out the fixes in order of data size16:

  • Partial transparency. Each dot is drawn semi transparent, so stacks look darker. Good for hundreds of points, but readers may not realise why some dots are darker.
  • Jitter. Each dot is moved randomly by a small amount, so stacked dots spread out and become countable. It changes the data, so use only a little: jitter too much and dots land where no data was.
  • 2D histograms. The plane is cut into small rectangles, each coloured by how many items fall in it. Good for tens of thousands of points.
  • Hexagonal bins. The same idea with hexagons, proposed by Daniel Carr and colleagues for large scatter plot matrices17. Points in a hexagon sit slightly closer to its centre on average than in a square of equal area, so hexagons represent the data a little more faithfully16.
  • Density contours. Lines (like height lines on a map) that join areas of equal point density. Good when density changes smoothly, and for comparing two or three groups. With more overlapping groups, Wilke shows they turn into a tangle, and the cure is to give each group its own panel16.
Number of pointsProblemFirst fix to try
Under about 200, rounded valuesIdentical coordinates hide stacksLight jitter plus transparency
A few hundred to a few thousandDense core becomes a blobTransparency, smaller dots
Tens of thousands and moreThe whole core is solid inkHexagonal bins or a 2D histogram
Several overlapping groupsColours hide each otherSmall multiples, one panel per group

Example: 14,600 online orders

Ridgeway's one off online sales are £600,000 a year (25% of £2.4 million). With a mean order of £41, that is about 14,600 orders a year (derived: £600,000 divided by £41). Joe wants to see order value against the number of bags in the order. Bag counts are whole numbers from 1 to 6, and prices cluster at a few price points, so thousands of orders share exactly the same coordinates. The raw scatter shows a few dozen dots and hides 14,600 orders.

He tries three fixes. Jitter of a quarter bag sideways spreads each stack into a visible column, and shows that one and two bag orders dominate. A hexagonal bin chart of order value against days since the customer's previous order shows a dense band of repeat orders around four to five weeks apart, invisible in the raw cloud. Because order values are right skewed (median £32, mean £41, 10% above £90), he puts order value on a log scale, as the chapter on scales and axes explains, so the long tail does not squash everyone else into the bottom tenth of the chart.

Bubble charts and the area trap

A bubble chart adds a third number to a scatter plot as the size of each dot. It is tempting, and it is weak. Wilke names the two problems: it shows the same kind of variable (quantities) on two different kinds of scale, position and size, which makes the associations hard to compare, and size differences are much harder to perceive than position differences, especially since bubbles must stay small enough to fit2. Cleveland and McGill's ranking puts area well below position1, and Jeffrey Heer and Michael Bostock reproduced that ranking in a large online experiment18.

Then there is the trap. If your software scales the bubble's radius (or diameter) to the value, a value twice as large gets four times the area, and the reader sees a fourfold difference. The value must map to the area, so the radius grows with the square root of the value.

Example: café seats as bubbles

Joe tries showing each café's seat count as bubble size on the café chart. Seats range from 12 to 86. With radius proportional to seats, an 80 seat café would cover four times the area of a 40 seat café, a fourfold visual difference for a twofold real one. Scaling by area fixes that, but the chart still asks readers to compare 140 bubbles of slightly different sizes, which they cannot do well. He drops the bubbles and adds a second scatter plot: weekly order against seats. There the relationship is plain at a glance (r=0.60r = 0.60), and both charts use position, the channel the eye reads best.

Many variables: scatter plot matrices and correlograms

With four or five variables, you want every pair at once. A scatter plot matrix (often called a SPLOM) arranges a small scatter plot for every pair of variables in a grid: row ii, column jj shows variable ii against variable jj. Wilke recommends it over a bubble chart, because every relationship is shown by position2. Richard Heiberger and Burt Holland, in the Handbook of Data Visualization, treat it as one case of a broader idea: a structured set of graphs, where panels are built from every combination of two sets (here, variables crossed with variables), with identical scales so that panels can be compared19.

When the grid grows past a handful of variables, the individual plots become postage stamps. Then you can show the correlation coefficients instead of the dots: a correlogram, a grid of tiles coloured by rr2. Michael Friendly developed the idea under the name corrgram, with one key move: reorder the variables so that similar ones sit next to each other and patterns appear as blocks20. Wilke adds a refinement, scaling a circle in each tile by the size of rr so that near zero correlations fade away instead of competing for attention, and a warning: a correlogram is abstract, and it hides the very dots that Anscombe told us to look at2.

Han Ming Wu, ShengLi Tzeng and Chun Houh Chen go one step further in the Handbook with matrix visualisation: colour the whole data table, item by variable, and reorder rows and columns so that clusters of similar items and groups of related variables appear as blocks21. Reordering is the whole trick: a heatmap in arrival order is noise, the same heatmap sorted by similarity is a picture.

Example: four café variables at once

Joe adds two more variables for each café: account age in months (2 to 56) and seat count (12 to 86). The correlation matrix (derived from the example data):

Drive timeWeekly kgAccount ageSeats
Drive time1−0.60-0.60−0.61-0.61−0.05-0.05
Weekly kg−0.60-0.6010.620.60
Account age−0.61-0.610.6210.09
Seats−0.05-0.050.600.091

The table shows something the café chart alone could not: drive time and account age are strongly linked (−0.61-0.61). The distant cafés are, on average, the newer ones. And account age goes with bigger orders (0.62). So some of the "distance" effect may be an "account age" effect in disguise. Seats tell a separate, clean story: bigger cafés order more, wherever they are.

Joe checks the full scatter plot matrix too: each coefficient describes a straight band, not an Anscombe surprise.

Parallel coordinates: one line per thing across many axes

Parallel coordinates, developed by Alfred Inselberg22, put every variable on its own vertical axis, side by side, and draw each item as a line that connects its values from axis to axis. In the Handbook, Inselberg describes exploring with them like a detective: start without bias, know the objective, and follow up anything that catches the eye, such as gaps, density changes and twists23. Two patterns are worth learning. Between two neighbouring axes, lines running roughly parallel mean a positive relationship, and lines crossing in an X mean a negative one.

Martin Theus is frank about the limits in the same Handbook24. Parallel coordinates are often overrated for finding new structure: a scatter plot is better for any pair. They overplot even worse than scatter plots, because each item spends a whole line of ink. They need transparency (alpha blending), sensible scaling and, crucially, a good order of axes, because only neighbouring axes can be compared. Where they shine is profiles: highlighting one item or one group and seeing how it differs from everyone else across many variables at once.

Example: profiling the far away big spenders

Joe draws the 140 cafés across four axes: drive time, account age, seats, weekly kg. All 140 lines in full ink are a grey mat. With transparency, and the four distant cafés that order well above the line highlighted in colour, the profile jumps out: far on the first axis, older than most distant cafés on the second, high on seats, high on orders. Those four are big, established cafés. For Maya, Joe redraws the finding as a simple scatter plot with those cafés labelled, because a board will not learn to read parallel coordinates in one meeting.

Glyphs: faces and stars are for exploring

A glyph turns each item into a small shape whose parts encode its variables: a star whose rays have different lengths, a profile of little bars, or (most famously) a cartoon face whose features encode numbers, Chernoff's faces. Matthew Ward's Handbook chapter is the clearest account of their strengths and weaknesses25. Their strength is spotting similar items and outliers among a modest number of items. Their weakness is bias: some features are seen more readily than others, so the variable you map to a prominent feature looks more important. Ward discusses ordering the variables around a glyph to reduce this, by correlation, by symmetry or by what the user knows matters.

Example: star glyphs for the 18 coffees

For an internal tasting meeting, Joe draws the 18 coffees as star glyphs with five rays: rating, repeat orders, margin, roast time and share of Explorer boxes. The house blend, the Colombian and the Ethiopian, which account for 61% of repeat orders, stand out as large, balanced stars. Good for a discussion. For the board he uses a sorted dot plot instead, as the chapter on amounts and proportions recommends.

Small multiples: the same chart, sliced by a third variable

Small multiples are a grid of small charts with the same design, each showing a different slice of the data. Edward Tufte popularised the term in Envisioning Information26. Richard Becker, William Cleveland and Ming Jen Shyu developed the same idea at Bell Labs as the trellis display, where each panel is conditioned on the value of one or more other variables27. Theus explains in the Handbook that a trellis display can hold several variables at once: two on the axes of each panel, and up to three more choosing the rows, columns and pages24.

Small multiples are the best answer to "does this relationship hold within each group?", because each panel is a plain scatter plot, and the reader compares the panels by eye. Wilke sets two rules that make or break them: use the same axis ranges in every panel, because readers assume it and will be misled otherwise, and arrange panels in a meaningful order28. If a different scale cannot be avoided, say so in the caption28.

Example: the café chart sliced by account age

Joe splits the 140 cafés into three equal groups by account age: under 26 months, 26 to 35 months, and 36 months or more. He draws three small scatter plots, same axes, ordered from newest to oldest.

Account ageCafésMean drive timeSlope (kg per extra hour)
Under 26 months4489 minutes0.61 kg less
26 to 35 months4853 minutes0.26 kg less
36 months and over4832 minutes0.72 kg less

Two things are now visible. The newest accounts are the distant ones (89 minutes on average against 32 for the oldest). And inside every age group the slope is flatter than the pooled 0.78 kg per hour. A regression that holds account age constant (derived from the example data) puts the distance slope at about 0.46 kg per hour: roughly 60% of the pooled slope survives, and about 40% belonged to account age. Distance still matters, but less than the first chart suggested.

Joe's revised title for the board: "Distant cafés order a little less, partly because they are newer customers." That is rung two, carefully worded. Whether a local delivery van would lift distant orders is a rung four question, and it needs a test.

Is the pattern even real? The lineup test

The eye finds patterns in noise. Andreas Buja, Dianne Cook and colleagues proposed a way to check, borrowed from police lineups: hide the real chart among a set of decoys made by shuffling one variable, so any true relationship is destroyed, and ask someone who has not seen the data to pick the odd one out29. If they cannot, the pattern is not convincing. Hadley Wickham, Cook, Heike Hofmann and Buja brought the method to information visualisation as graphical inference30.

It needs no statistics training: anyone can shuffle a column in a spreadsheet.

Example: Joe tests the roast pattern

Joe takes the Ethiopian batches only (16 dots), copies the rating column, shuffles it five times with a random sort, and draws six small scatter plots: five shuffled, one real, in random order. He shows them to the head roaster: "Which one is different?" She picks the real one at once: it is the only panel with a clear upward slope. With 16 batches, that is a reasonable sign the within origin pattern is not luck. Had she hesitated, Joe would have written "no clear link" and waited for more batches.

Which display for which question

QuestionDisplayStrengthWatch out for
Do two quantities move together?Scatter plotTwo position scales, the most accurate channelOverplotting, padded axes
What is the average relationship?Scatter plot with a fitted line or smootherPuts a size on the trendLines claim nothing beyond the data, smoothers depend on settings
Does it hold within each group?Colour by group, or small multiplesReveals confounding and Simpson's paradoxSame scales in every panel, three groups at most for colour
A third number for each item?A second scatter plot, rarely a bubble chartKeeps every value on positionBubbles: scale area, not radius
Every pair among four to six variables?Scatter plot matrixRaw data for every pairBecomes postage stamps beyond about six
Overview of many variables?Correlogram, reorderedShows blocks of related variablesAbstract, hides shapes, check with dots
How does one item or group differ across many variables?Parallel coordinates with highlightingProfilesNeeds transparency, axis order, training
Which items are similar overall?Glyphs, or a reordered heatmapSpotting clusters and outliersFeature bias, for exploring, not presenting
Is the pattern real at all?Lineup of shuffled decoysNeeds no statisticsShow it to someone who has not seen the data

Theus draws the line that matters for business: some multivariate displays are made for exploring and some for presenting, and the exploring kind usually needs interaction and training that a broad audience does not have24. The chapter on exploring data before you present anything picks up exactly there.

My view

My view: a relationship chart for a decision is almost always a scatter plot, at most coloured by one group or split into small multiples, with the correlation and the slope in the caption and a title whose verb has been earned. Correlograms, parallel coordinates and glyphs are excellent for finding the story. They are rarely the right way to tell it, because the audience must first learn to read them, and a board meeting is not a training course.

Where experts disagree, I land as follows. On dual axes for relationships, I side with Knaflic and the later Few: the free choice of two scales makes them too easy to bend, and indexing or two panels do the same job honestly. On bubble charts, I use them only when the third number is secondary and approximate, for example market size behind a positioning chart, and never when the reader must compare the bubbles. On smoothers, I agree with Wilke that they are useful guides, and I add that I would rather show a straight line with its honest scatter than a confident curve built on a default setting.

And the verb ladder is the rule I would put on the wall. Most mistakes on relationship charts are not drawing mistakes. They are a title claiming a cause nobody tested.

Conclusion

A scatter plot is the honest default for two quantities, because it spends the eye's best channel, position, on both. Read it for form, direction, strength and exceptions. Put the correlation and the slope in the caption, because the eye underrates moderate correlations and padded axes inflate them. Always look at the dots, because Anscombe's quartet and the Datasaurus prove that a summary can hide anything. When dots pile up, use transparency, jitter, bins or contours. For more variables, prefer a second scatter plot or small multiples to bubbles, and keep correlograms, parallel coordinates and glyphs for exploring.

Most of all, check the third variable before you write the title. At Ridgeway, pooling hid that every coffee improves with a slightly longer roast, and distance turned out to be partly account age. Climb the verb ladder one rung at a time: moves with, predicts, drives.

Data storytelling, analytics dashboards and data science are a core part of my work for clients. If you want a second pair of eyes on the relationships behind your own numbers, the free workshop is the place to start.

If you want to know which relationships in your own data are real and which are a third variable in disguise, book the free workshop: we look at your numbers together, and the first two weeks of work are on me.

Sources

  1. 1.

    William S. Cleveland and Robert McGill, Graphical perception: theory, experimentation, and application to the development of graphical methods, Journal of the American Statistical Association 79 (387), 1984, pages 531 to 554, https://doi.org/10.1080/01621459.1984.10478080

  2. 2.

    Claus O. Wilke, Fundamentals of Data Visualization, O'Reilly, 2019, chapter 12, Visualizing associations among two or more quantitative variables, https://clauswilke.com/dataviz/visualizing-associations.html

  3. 3.

    Cole Nussbaumer Knaflic, Storytelling with Data: A Data Visualization Guide for Business Professionals, Wiley, 2015, chapter 2, Choosing an effective visual, pages 44 to 45 (scatterplot), https://www.storytellingwithdata.com/books

  4. 4.
  5. 5.

    Ronald A. Rensink and Gideon Baldridge, The perception of correlation in scatterplots, Computer Graphics Forum 29 (3), 2010, pages 1203 to 1210, https://doi.org/10.1111/j.1467-8659.2009.01694.x

  6. 6.

    William S. Cleveland, Persi Diaconis and Robert McGill, Variables on scatterplots look more highly correlated when the scales are increased, Science 216 (4550), 1982, pages 1138 to 1141, https://doi.org/10.1126/science.216.4550.1138

  7. 7.

    F. J. Anscombe, Graphs in statistical analysis, The American Statistician 27 (1), 1973, pages 17 to 21, https://doi.org/10.1080/00031305.1973.10478966

  8. 8.

    Justin Matejka and George Fitzmaurice, Same stats, different graphs: generating datasets with varied appearance and identical statistics through simulated annealing, Proceedings of CHI 2017, ACM, pages 1290 to 1294, https://doi.org/10.1145/3025453.3025912 and https://www.research.autodesk.com/publications/same-stats-different-graphs/

  9. 9.

    William S. Cleveland, Robust locally weighted regression and smoothing scatterplots, Journal of the American Statistical Association 74 (368), 1979, pages 829 to 836, https://doi.org/10.1080/01621459.1979.10481038

  10. 10.

    Claus O. Wilke, Fundamentals of Data Visualization, O'Reilly, 2019, chapter 14, Visualizing trends, section on smoothing, https://clauswilke.com/dataviz/visualizing-trends.html

  11. 11.

    Tyler Vigen, Spurious Correlations (website, and book published by Hachette Books, 2015), https://www.tylervigen.com/spurious-correlations

  12. 12.

    Austin Bradford Hill, The environment and disease: association or causation?, Proceedings of the Royal Society of Medicine 58 (5), 1965, pages 295 to 300, https://doi.org/10.1177/003591576505800503

  13. 13.

    P. J. Bickel, E. A. Hammel and J. W. O'Connell, Sex bias in graduate admissions: data from Berkeley, Science 187 (4175), 1975, pages 398 to 404, https://doi.org/10.1126/science.187.4175.398

  14. 14.

    Cole Nussbaumer Knaflic, Storytelling with Data, Wiley, 2015, chapter 2, Choosing an effective visual, pages 66 to 68 (secondary y axis), https://www.storytellingwithdata.com/books

  15. 15.

    Stephen Few, Dual-scaled axes in graphs: are they ever the best solution?, Visual Business Intelligence Newsletter, Perceptual Edge, March 2008, https://www.perceptualedge.com/articles/visual_business_intelligence/dual-scaled_axes.pdf

  16. 16.

    Claus O. Wilke, Fundamentals of Data Visualization, O'Reilly, 2019, chapter 18, Handling overlapping points, https://clauswilke.com/dataviz/overlapping-points.html

  17. 17.

    D. B. Carr, R. J. Littlefield, W. L. Nicholson and J. S. Littlefield, Scatterplot matrix techniques for large N, Journal of the American Statistical Association 82 (398), 1987, pages 424 to 436, https://doi.org/10.1080/01621459.1987.10478445

  18. 18.

    Jeffrey Heer and Michael Bostock, Crowdsourcing graphical perception: using Mechanical Turk to assess visualization design, Proceedings of CHI 2010, ACM, pages 203 to 212, https://doi.org/10.1145/1753326.1753357

  19. 19.

    Richard M. Heiberger and Burt Holland, Structured sets of graphs, in Chun houh Chen, Wolfgang Härdle and Antony Unwin (eds.), Handbook of Data Visualization, Springer, 2008, chapter III.6, pages 415 to 446, https://doi.org/10.1007/978-3-540-33037-0

  20. 20.

    Michael Friendly, Corrgrams: exploratory displays for correlation matrices, The American Statistician 56 (4), 2002, pages 316 to 324, https://doi.org/10.1198/000313002533

  21. 21.

    Han Ming Wu, ShengLi Tzeng and Chun Houh Chen, Matrix visualization, in Chun houh Chen, Wolfgang Härdle and Antony Unwin (eds.), Handbook of Data Visualization, Springer, 2008, chapter III.15, pages 681 to 708, https://doi.org/10.1007/978-3-540-33037-0

  22. 22.

    Alfred Inselberg, The plane with parallel coordinates, The Visual Computer 1 (2), 1985, pages 69 to 91, https://doi.org/10.1007/BF01898350

  23. 23.

    Alfred Inselberg, Parallel coordinates: visualization, exploration and classification of high dimensional data, in Chun houh Chen, Wolfgang Härdle and Antony Unwin (eds.), Handbook of Data Visualization, Springer, 2008, chapter III.14, pages 643 to 680, https://doi.org/10.1007/978-3-540-33037-0

  24. 24.

    Martin Theus, High dimensional data visualization, in Chun houh Chen, Wolfgang Härdle and Antony Unwin (eds.), Handbook of Data Visualization, Springer, 2008, chapter II.6, pages 151 to 178, https://doi.org/10.1007/978-3-540-33037-0

  25. 25.

    Matthew O. Ward, Multivariate data glyphs: principles and practice, in Chun houh Chen, Wolfgang Härdle and Antony Unwin (eds.), Handbook of Data Visualization, Springer, 2008, chapter II.7, pages 179 to 198, https://doi.org/10.1007/978-3-540-33037-0

  26. 26.

    Edward R. Tufte, Envisioning Information, Graphics Press, 1990, chapter on small multiples, https://www.edwardtufte.com/book/envisioning-information/

  27. 27.

    Richard A. Becker, William S. Cleveland and Ming Jen Shyu, The visual design and control of trellis display, Journal of Computational and Graphical Statistics 5 (2), 1996, pages 123 to 155, https://doi.org/10.1080/10618600.1996.10474701

  28. 28.

    Claus O. Wilke, Fundamentals of Data Visualization, O'Reilly, 2019, chapter 21, Multi-panel figures, section on small multiples, https://clauswilke.com/dataviz/multi-panel-figures.html

  29. 29.

    Andreas Buja, Dianne Cook, Heike Hofmann, Michael Lawrence, Eun Kyung Lee, Deborah F. Swayne and Hadley Wickham, Statistical inference for exploratory data analysis and model diagnostics, Philosophical Transactions of the Royal Society A 367 (1906), 2009, pages 4361 to 4383, https://doi.org/10.1098/rsta.2009.0120

  30. 30.

    Hadley Wickham, Dianne Cook, Heike Hofmann and Andreas Buja, Graphical inference for infovis, IEEE Transactions on Visualization and Computer Graphics 16 (6), 2010, pages 973 to 979, https://doi.org/10.1109/TVCG.2010.161

Shelter

I’m running the London Marathon for Shelter. Sunday 25 April 2027

My personal fundraiser. Shelter, the National Campaign for Homeless People Limited, registered charity 263710 (England and Wales) and SC002327 (Scotland), registered with the Fundraising Regulator.

Donate to Shelter