IN ONE SENTENCE

A graph is not a direct copy of the data. Once you choose how to divide the values and how to mark the axis, you have decided what will be visible and what will be hidden. Quantities that span several orders of magnitude are mostly invisible unless you view them on a log scale.

Primate body mass spans several orders of magnitude

Among the 265 primate species with a recorded body mass, the lightest weighs 31 grams and the heaviest, the eastern gorilla, weighs 149,325 grams. That is a difference of about 4,800-fold. Home range size (the area a group or individual normally moves around in) also varies about 14,000-fold among the species with records.

When you graph quantities like these, two choices directly shape what you see. How wide are the intervals the values are divided into? And does the axis mark equal steps as equal “differences” or as equal “ratios”?

Histogram
A chart that divides values into intervals of equal width and shows the number of species in each interval as the height of a bar. Used to see the shape of a distribution.
Bin, bin width
An interval, and the width of that interval. Also called a class and class width.
Log scale
An axis on which each tick mark means the value is ten times larger. Equal distances represent equal “ratios.”
Scatter plot
A chart that puts two quantities on the horizontal and vertical axes and plots each species as one point. Used to see the relationship between two quantities.

The same 265 species, drawn on two different scales

Linear scale (bin width 5,000 g)

Log scale (bin width 0.25 decade)

Lightest species31 g
Heaviest species149,325 g
Species under 10,000 g234 species (88%)

In the left chart, the first bar (0–5,000 g) holds 158 species, and the rest is just a thin tail stretching to the right. In the right chart, the same 265 species gather into a single peak, and the fullest bin runs from about 5,600 to 10,000 g (66 species).

Both charts use exactly the same values. The only difference is how the horizontal axis is marked. The left chart conveys the fact that “most species are small, and a very few are huge.” The right chart conveys the fact that “viewed in terms of ratios, species body masses form one coherent distribution.”

Change the bin width and the scale
Bin width
Number of bins
Fullest bin
Species in that bin

A histogram shows the distribution of one quantity. To see the relationship between two quantities, we use a scatter plot. Here, the 153 species with records of both body mass and home range size are plotted, one point per species.

Put the scatter plot on log–log axes
Hover over a point to see the species’ scientific name and values.
Points
Highlighted family
In the bottom-left box

The “bottom-left 10% × 10% box” is the small rectangle covering the lowest tenth of the displayed range on each axis.

How it works: logarithms turn “differences” into “ratios”

On a log scale, what is spaced evenly is not the value itself but its common logarithm. The common logarithm of a number is the power to which 10 must be raised to give that number.

log value = log10(body mass)   e.g. 31 g → 1.49, 149,325 g → 5.17

The range from 31 grams to 149,325 grams becomes 1.49 to 5.17 on the log scale, a span of only about 3.7. The distance from 100 grams to 1,000 grams is the same length as the distance from 10,000 grams to 100,000 grams. In other words, distance along a log axis represents “how many times larger.”

Compare the skewness, which measures how lopsided a distribution is (0 means symmetric, and larger positive values mean a longer tail to the right). Body mass itself has a skewness of 7.60, while the logarithm of body mass has −0.40. Taking logarithms makes the distribution almost symmetric.

The same thing happens in scatter plots. With the raw values, a few large species or species with very large home ranges set the range of the axes, and the remaining points are squeezed into a corner. On log–log axes, the points line up in a band from the lower left to the upper right. Even the correlation coefficient, which measures the strength of the relationship between two quantities (covered in 03 Correlation and causation), changes with the choice of scale: 0.35 with the raw values and 0.68 between the logarithms.

Common misconceptions

“Bin width is a matter of taste and does not affect how you read the shape of a distribution.”

It does. With bins 1,000 g wide, the first bar holds 95 species. With bins 20,000 g wide, there are only 8 bins, and the first bar holds 258 of the 265 species. You can hardly read any shape at all. Conversely, if the bins are too narrow, the bars become sparse and chance bumps stand out.

“Taking logarithms is a way of manipulating the data to mislead.”

Taking logarithms changes neither the order of the species nor how many times heavier one species is than another. What changes is whether equal distances on the axis represent equal “differences” or equal “ratios.” For a quantity like body mass, where ratios are what matter, a log axis shows the facts as they are. The chart must always state clearly that the axis is logarithmic, however.

“If the points in a scatter plot look clumped together, the relationship must be weak.”

When body mass and home range size are drawn on linear scales, 136 of the 153 species (89%) fall inside the bottom-left 10% × 10% box. This is not because the relationship is weak. It is because a few extreme species set the range of the axes. Draw the same 153 species on log–log axes, and a clear upward trend appears.

“Extreme values such as gorillas just get in the way, so they should be left out of the chart.”

Gorillas and humans are not measurement errors. They are the values of real species. Leaving them out changes the very fact you are describing, the distribution of primate body mass. A log scale is what you use when you want to see the overall shape while keeping the extreme values.

Covered in the courses

The course sites are in Japanese and open to anyone. To go further, visit the page for each session.

Data: Jones, K. E. et al. (2009) PanTHERIA: a species-level database of life history, ecology, and geography of extant and recently extinct mammals. Ecology 90: 2648. Of 376 primate species, the histograms use the 265 species with a recorded adult body mass, and the scatter plot uses the 153 species with records of both body mass and home range size.