Replace dynamite plots with intervals and raw data
Back to the Chart galleryxpd charts
How wide is the spread of individual countries behind each continent mean?
Plotly Express Gapminder dataset, country life expectancy across four continents in 2007.
“Bar plots with error bars hide the underlying data distribution and give unequal visual weight to values above and below the mean”
Also covered in Cleveland 1994 (3.14 Statistical Variation, p. 214), Miller 2013 (6 Creating Effective Charts, p. 131).
Before
Interactive chart unavailable.
After
Interactive chart unavailable.
Values
Continent means range from 54.8 years in Africa to 77.6 years in Europe.
Africa spans 39.6 to 76.4 years around a 54.8 year mean, while Europe clusters tightly between 71.8 and 81.8 years.
| 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 |