We are analyzing country-level indicators using R, focusing on health and economic measures. The aim is to understand how life expectancy, GDP per capita, and population vary across nations and continents.
The study compares three key indicators:
- Life Expectancy
- GDP per Capita
- Population
This helps us identify global disparities and patterns in health outcomes.
We use the Gapminder dataset, which provides historical data on countries across multiple years. For this analysis, we filter the dataset to the latest year available, giving us a snapshot of current conditions.
A bar chart of the top 10 countries by life expectancy shows that developed nations dominate the list. Countries like Australia and several European nations consistently achieve high life expectancy, highlighting the gap between developed and developing regions.
The scatter plot of GDP per capita vs. life expectancy reveals a clear positive relationship. Wealthier nations tend to have longer life expectancy, and the regression line confirms this trend. This suggests that economic prosperity is strongly linked to better health outcomes.
The box plot compares life expectancy by continent.
- Europe shows consistently high values.
- Africa has the lowest median and widest variation.
- Asia and the Americas fall in between.
This emphasizes regional differences in health outcomes.
The parallel coordinates plot allows us to compare multiple indicators simultaneously. Each country is represented as a line across life expectancy, GDP per capita, and population.
- High GDP and high life expectancy countries cluster together (Europe, North America).
- Low GDP and low life expectancy countries form another cluster (Africa).
This visualization highlights global patterns and disparities across multiple dimensions.
Through these visualizations, we see:
- Clear global inequalities in health and wealth.
- Strong correlation between economic prosperity and life expectancy.
- Regional clusters that highlight disparities.
- The parallel coordinates plot ties everything together, showing how countries align across multiple indicators.