Always label what error bars represent
Back to the Chart galleryxpd charts
What kind of uncertainty interval do the horizontal whiskers represent?
Plotly Express Gapminder dataset, country life expectancy by continent in 2007.
“Always state explicitly what error bars represent, whether standard deviation, standard error, or a confidence interval”
Also covered in Wilke 2019 (16 Visualizing Uncertainty, p. 189), Cleveland 1994 (3.14 Statistical Variation, p. 214), Miller 2013 (6 Creating Effective Charts, p. 133).
Before
Interactive chart unavailable.
After
Interactive chart unavailable.
Values
Africa averages 54.8 years while Europe averages 77.6 years and Oceania averages 80.7 years.
Africa averages 54.8 years (+/- 2.6, n=52) while Europe averages 77.6 years (+/- 1.1, n=30).
| Continent | Countries | Mean life expectancy (years) | 95% CI half-width |
|---|---|---|---|
| Africa | 52 | 54.81 | 2.62 |
| Asia | 33 | 70.73 | 2.72 |
| Americas | 25 | 73.61 | 1.74 |
| Europe | 30 | 77.65 | 1.07 |
| Oceania | 2 | 80.72 | 1.01 |