Click the Original, Code and Reconstruction tabs to read about the issues and how they were fixed.
Objective
The above data visualisation shows a significant gap between Generation Z (someone born in between mid or late 1990s till early 2010s) and Older generation’s (born before Generation Z) unemployment rate in OECD countries during the year 2020. The main objective of the above data visualisation is to show how the global pandemic COVID-19 has impacted Generation Z’s unemployment rate and it is targeted to make general public aware about the situation.
The visualisation chosen had the following three main issues:
Reference
The following code was used to fix the issues identified in the original.
# importing required libraries
library(readr)
library(magrittr)
library(tidyr)
library(ggplot2)
# importing dataset
oecd_unemployment <- read_csv("Unemployment Rate.csv")
# transforming data from wide to long using gather() function
oecd_unemployment <- oecd_unemployment %>% gather(`15-24 year olds`, `25-74 year olds`, key = "Age Group", value = "Unemployment Rate")
# Using ggplot to reconstruct the data visualization
p1 <- ggplot(data = oecd_unemployment, mapping = aes(y = `Country Name`, x = `Unemployment Rate`, fill = `Age Group`))
p1 <- p1 + geom_bar(position=position_dodge(), width = 0.75,
stat = "identity") +
labs(
title = "Generation Z vs Older Generation Unemployment rate (Year 2020)",
y = "",
x = "Unemployment Rate",
caption = "* The data for Mexico 25-74 year olds unemployment rate is unavailable."
)
Data Reference
OECD (2021), Unemployment rate by age group (indicator). DOI: 10.1787/997c8750-en, Retrieved 3 May 2021, from https://data.oecd.org/unemp/unemployment-rate-by-age-group.htm
OECD (2011), “ISO Country Codes”, in Pensions at a Glance 2011: Retirement-income Systems in OECD and G20 Countries, OECD Publishing, Paris. DOI: https://doi.org/10.1787/pension_glance-2011-3-en
The following plot fixes the main issues in the original.