Lesson 4 of 20

Point, line, bar — the promise each mark makes

drawing a line says “the space between exists”

Point, line, bar — the promise each mark makes
Every mark promises the reader something different. A point says “this value happened”, a line says “so does the space between”, a bar says “this much, starting from zero”.

The body of a chart is only ever three things — points, lines and bars. A UMAP is points. A volcano plot is points. A survival curve is a line. A heatmap is a very wide bar.

But these are not merely shapes. They are promises made to the reader.

•
Point — “one of these happened here”
one observation, one dot. It says nothing at all about the space between
╱
Line — “the space between is filled”
it claims values exist between two points. Only for time, rank or a continuum
▮
Bar — “this much, from zero”
the length is the value. Which is why it must start at zero
Redraw the same data as points, lines and bars. Then lift the bar baseline and watch.
Loading…

The three marks can also be combined — most figures in the paper do.

CombinationWhat it becomesIn the paper
points + linegrowth curve · enrichment curveFigs. 4C · 6B
bars + pointsa mean bar with the individuals scattered on itFig. 4B
points + boxdistribution and individuals togetherFig. 4E
points alonevolcano · UMAP · dot plotFigs. 3B · 5B · 5C

There is one rule: an added mark must add information. Scattering points over a bar adds the sample size and the spread, so it is good. Adding a drop shadow to a bar adds nothing, so it is bad.

The left panel is honest but hard to read; the middle one is readable but asserts unmeasured points; the bars on the right threw the whole process away.
Python Runs in your browser

Which of the three is right? It depends on the question.

The questionThe mark
When did the arms diverge?points + line
How big is the final difference?bars (or a box with points on it)
How much do individuals vary?one thin line per animal (spaghetti)

The paper puts bars in Fig. 4B and lines in Fig. 4C, side by side. Two questions, two answers.

🤔 Check yourself
Mean TIL for thirteen tumour types is plotted as dots joined by a line. What is wrong?
🤔 Check yourself
Two groups have means of 40 and 44. What happens if the bar y-axis starts at 38?