๐ŸŒ 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

  1. Data cleaning: removed unused columns
  2. Scatterplot: CPI vs HDI, colored by region
  3. Added regression line with log(x) fit
  4. Labeled key countries (Russia, India, US, etc.)
  5. Applied theme_bw() and custom scales for CPI & HDI
  6. Finalized with professional titles and axis labels

๐Ÿ“ˆ Key Visualization

CPI vs HDI

(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