๐ Economist Data Visualization (CPI vs HDI)
September 19, 2025 ยท View on GitHub
๐ Overview
This project visualizes the relationship between the Corruption Perceptions Index (CPI) and the Human Development Index (HDI) using the Economist dataset.
It reproduces a classic plot showing how corruption levels correlate with human development across different regions.
๐ Dataset
- File: Economist_Assignment_Data.csv
- Observations: ~173 countries
- Features: CPI, HDI, Region, Country
โ๏ธ Tools & Libraries
- R (ggplot2, dplyr)
- Techniques: Scatterplots, Regression (log model), Faceting, Thematic styling
๐ Approach
- Data cleaning: removed unused columns
- Scatterplot: CPI vs HDI, colored by region
- Added regression line with
log(x)fit - Labeled key countries (Russia, India, US, etc.)
- Applied
theme_bw()and custom scales for CPI & HDI - Finalized with professional titles and axis labels
๐ Key Visualization

(You can export the final ggplot as PNG and save it in a plots/ folder.)
๐ Future Work
- Add interactive version using Plotly
- Explore time-series comparisons across years
- Build a Shiny dashboard
๐ Project Structure
economist-visualization/
โโโ README.md # Project documentation
โโโ Economist_visualization.R # R script with all plots
โโโ Economist_Assignment_Data.csv # Dataset
โโโ plots/ # Exported figures