Choose map classes from the data distribution
Back to the View galleryxpd views
How does life expectancy differ between world regions?
Plotly Express Gapminder dataset, country life expectancy in 2007 across 142 countries.
“Arbitrary selection of breaks between categories might mask a clear, coherent trend”
Also covered in Slocum 2023 (5 Data Classification, p. 89), Slocum 2023 (5 Data Classification, p. 88), Brewer 2024 (9 Color on Maps, p. 449).
Before
Interactive chart unavailable.
After
Interactive chart unavailable.
Values
Life expectancy ranges from 39.6 years in Swaziland to 82.6 years in Japan.
The lowest class covers most of sub-Saharan Africa, and the highest covers Western Europe, Japan and Australia.
| ISO | Country | Life expectancy in 2007 (years) |
|---|---|---|
| JPN | Japan | 82.6 |
| HKG | Hong Kong, China | 82.2 |
| ISL | Iceland | 81.8 |
| CHE | Switzerland | 81.7 |
| AUS | Australia | 81.2 |
| ESP | Spain | 80.9 |
| SWE | Sweden | 80.9 |
| CAN | Canada | 80.7 |
| FRA | France | 80.7 |
| ISR | Israel | 80.7 |