Method · Statistics Library

Dot plot

A dot plot shows numbers as dots on one scale, either every value as its own dot in a strip per category (with each category's mean marked) or one dot per category at its mean, median, sum or count, optionally with the 95% confidence interval of the mean.

Topic indexA reference reading outside the guided chapter sequence

Understand the idea

In the every-value form each row is one dot, placed at its value in a strip for its category. You see the whole sample: how many values, how spread out, any clusters or stray values, which a bar showing only the average would hide. The dots are nudged sideways at random so equal values do not hide behind each other; only the position along the value scale means anything. A red dash marks each category's mean.

In the summary form (a Cleveland dot plot) each category gets one dot at its mean, median, sum or count, sorted so the largest is at the top. It can replace a bar chart or a pie: positions along one scale are easier to compare than lengths, angles or areas, and because the axis does not have to start at zero, small differences between large values stay visible.

With 'mean and 95% CI', a line through each dot shows the confidence interval for that category's mean. Two intervals that overlap do not show that the two means are equal, and two that do not overlap are not a formal test either: for that, use a t-test or ANOVA. A single dot also hides how many values stand behind it, so check n in the table.

Practitioner explanation

Every value: a strip plot with seeded jitter (the same picture every run; Jitter off lines the dots up) and each category's mean as a dash; above 5,000 values a 5,000-row sample is drawn, and every statistic uses all values. Statistic forms: the mean, the mean with its 95% t interval x̄ ± t(0.975, n − 1) s/√n (R's t.test; not drawn for a category with one value), the median, the sum or the count per category. Sort by value (on by default) ranks the dots, largest at the top; off keeps the order of first appearance. At most 60 categories.

Reading intervals side by side: for two independent means with similar standard errors, 95% intervals that overlap by about half of one arm correspond to a difference test at about p = .05, so overlapping intervals are still compatible with a real difference, and intervals that just touch correspond to p well below .05 (Cumming and Finch 2005). The picture does not replace the test of the difference and its own interval. For skewed values the median form represents a typical value better than the mean form.

When to use it

Consider it when

Showing every value of a small or moderate sample by category (in place of a bar of the mean), or comparing one statistic across many categories on one scale (in place of a bar chart or a pie).

Use caution when

Thousands of values per category in the every-value form (a box plot or density plot summarizes them better), a formal comparison of groups (use a t-test or ANOVA), or parts of one whole where each share is the message (a pie or bar chart of percentages).

Formulas and symbols

95% confidence interval of a category's mean

xˉ±t0.975, n−1 sn\bar{x} \pm t_{0.975,\,n-1}\,\dfrac{s}{\sqrt{n}}

x̄, s and n the category's mean, standard deviation and number of values; not defined for n = 1.

Alternatives

  • Boxplot (Boxplot). Many values per category, summarized by median, quartiles and outliers.
  • Bar Chart (Bar Chart). Counts or totals that start from zero and the audience expects bars.
  • One-Way ANOVA (One-Way ANOVA) or Two-Sample t-Test (Two-Sample t-Test). You want to test whether the category means differ, with an interval for the difference.

Worked example

Scenario

Dot plot of penguin body mass by species (342 values; 2 blank rows left out), Show set to mean and 95% CI, sorted.

Result

Gentoo 5,076.0 g [4,986.0, 5,166.0] (n = 123); Chinstrap 3,733.1 g [3,640.1, 3,826.1] (n = 68); Adelie 3,700.7 g [3,626.9, 3,774.4] (n = 151).

Interpretation

Gentoo are clearly the heaviest species in this sample. The Adelie and Chinstrap means are close and their intervals overlap almost entirely, so this picture cannot tell them apart; comparing them needs a test and the interval for their difference.

Dataset: penguins.csv

Common misconceptions

Misconception

Two groups' 95% intervals overlap, so their means must be equal and there is nothing to test.

Correction

Overlapping intervals are not evidence that two means are equal, and separate intervals are not a formal test. Whether the two means differ is a question for a t-test or ANOVA, read with the confidence interval for the difference: in the penguins, the Adelie and Chinstrap body-mass intervals overlap almost entirely, and only that test can say how far apart their means may be.

Misconception

Some categories' dots spread out sideways more, so their values vary more.

Correction

The sideways spread is random jitter added so that dots do not hide each other; only the position along the value axis is data.

Misconception

The top dot belongs to the category with the most rows.

Correction

In the summary forms the dots are ranked by the statistic shown (the mean, median, sum or count); the number of values behind each dot is in the table.

References

  1. Graphical methods for data presentation: full scale breaks, dot charts, and multibased logging, Cleveland, W. S. (1984), The American Statistician, 38(4), 270-280.
  2. Inference by eye: confidence intervals and how to read pictures of data, Cumming, G. and Finch, S. (2005), American Psychologist, 60(2), 170-180.