Lesson 5 of 20

Axes — start at zero, or go logarithmic?

mutation counts from 2 to 2,152

Axes — start at zero, or go logarithmic?
The axis is the quietest part of a chart, and the part that changes the conclusion most.

Here are the mutation counts of 407 lung adenocarcinoma samples. Real TCGA data.

fewest2
median223
mean336
most2,152

The largest is a thousand times the smallest. What happens if you put that on an ordinary axis?

On the left it is one spike against the wall. On the right a bell appears. Same data.
Python Runs in your browser
Change the axis. Truncate it, log it, flip it — and count how many different stories one dataset tells.
Loading…

An axis needs four decisions.

DecisionDefaultWhen to break it
Start at zero?bars: alwayspoints and lines need not
Linear or loglinearlog when values differ by multiples
Tick spacingmultiples of 1·2·5·10almost never
Matching rangesidentical across compared panelsif not, say so loudly

That last row matters most. When four conditions sit side by side the way they do in Fig. 5D, differing y-ranges make every height comparison wrong.

The two right-hand panels have cut the tail off. The fact that some patients reach 55% has simply vanished.
Python Runs in your browser
🤔 Check yourself
Why is gene expression usually plotted on a log2 scale?
🤔 Check yourself
Cell proportions for four conditions are drawn in four panels. What must you do?
🤔 Check yourself
When may a bar chart's y-axis start somewhere other than zero?