Comparing the share of wealth held by each income quintile (richest 20% to poorest 20%) in G-20 Nations
World Bank Data
A4 Size Viz
Governance
Inequality
Author
Aditya Dahiya
Published
May 18, 2024
Comparative Wealth Inequality across G-20 Nations
The graphic presented draws on data from the World Bank Databank, a comprehensive resource providing a wide array of economic and social data from household surveys conducted globally. This visual representation illustrates the distribution of wealth among different income groups across various countries. Each bar in the graphic represents a country, segmented into quintiles that display the percentage of total wealth owned by each 20% of the population, ranging from the poorest to the richest.
Notably, countries like South AfricaandBrazil are highlighted for their pronounced wealth inequality, where the wealthiest 20% control a substantial portion of the country’s wealth, leaving the poorest 20% with a minimal share. In contrast, nations such as South Korea, France, and Canada exemplify a more equitable distribution, with wealth more evenly dispersed among all income groups. This graphic underscores the disparities in wealth distribution and offers insights into the economic landscapes of different countries.
How I made this graphic?
Loading required libraries, data import & creating custom functions
Code
# Data Import and Wrangling Toolslibrary(tidyverse) # All things tidy# Final plot toolslibrary(scales) # Nice Scales for ggplot2library(fontawesome) # Icons display in ggplot2library(ggtext) # Markdown text support for ggplot2library(showtext) # Display fonts in ggplot2library(colorspace) # Lighten and Darken colourslibrary(patchwork) # Combining plots# Extras and Annotationslibrary(magick) # Image processing# Credits: Geospatial Science and Human Security at ORNL# Credits: @jpiburn, @petrbouchal, @bapfeld# install.packages("wbstats")library(wbstats)# Data Import and Wrangling Toolslibrary(tidyverse) # All things tidy# Final plot toolslibrary(scales) # Nice Scales for ggplot2library(fontawesome) # Icons display in ggplot2library(ggtext) # Markdown text support for ggplot2library(showtext) # Display fonts in ggplot2library(colorspace) # Lighten and Darken colourslibrary(patchwork) # Combining plots# Extras and Annotationslibrary(magick) # Image processing# Credits: Geospatial Science and Human Security at ORNL# Credits: @jpiburn, @petrbouchal, @bapfeld# install.packages("wbstats")library(wbstats)indicators <- wbstats::wb_indicators()selected_indicators <- indicators |>filter(str_detect(indicator, "Income share held by")) |>pull(indicator_id)rawdf <-wb_data(indicator = selected_indicators,start_date =1980,end_date =2023) |> janitor::clean_names()
# Font for titlesfont_add_google("Train One",family ="title_font") # Font for the captionfont_add_google("Barlow Condensed",family ="caption_font") # Font for plot textfont_add_google("Bubbler One",family ="body_font") ts <-80showtext_auto()# Colour Palettesmypal <- paletteer::paletteer_d("PNWColors::Sunset2")bg_col <-"white"# Background Colourtext_col <- mypal[1] |>darken(0.6) # Colour for texttext_hil <- mypal[1] |>darken(0.3) # Colour for highlighted text# Caption stuff for the plotsysfonts::font_add(family ="Font Awesome 6 Brands",regular = here::here("docs", "Font Awesome 6 Brands-Regular-400.otf"))github <-""github_username <-"aditya-dahiya"xtwitter <-""xtwitter_username <-"@adityadahiyaias"social_caption_1 <- glue::glue("<span style='font-family:\"Font Awesome 6 Brands\";'>{github};</span> <span style='color: {text_hil}'>{github_username} </span>")social_caption_2 <- glue::glue("<span style='font-family:\"Font Awesome 6 Brands\";'>{xtwitter};</span> <span style='color: {text_hil}'>{xtwitter_username}</span>")
Annotation Text for the Plot
Code
plot_title <-"Rich vs. Poor in the G-20"plot_caption <-paste0("**Data**: World Bank's Databank (2022)", " | **Code:** ", social_caption_1, " | **Graphics:** ", social_caption_2 )plot_subtitle <-str_wrap("The distribution of wealth among different income groups in various countries. Each bar represents a country, and the segments within each bar indicate the percentage of total wealth owned by each 20% (quintile) of the population, from the poorest to the richest. The data, derived from household surveys, reflect how income is shared among the population. Countries like South Africa and Brazil exhibit significant inequality, with the wealthiest 20% owning a large portion of the country's wealth, while the poorest 20% own very little. In contrast, countries like South Korea, France, and Canada demonstrate a more equitable distribution of wealth, where the wealth is more evenly spread across all income groups.", 90)