Click the Original, Code and Reconstruction tabs to read about the issues and how they were fixed.
Objective
The chart above was used by Fox News to show the trend line of the Unemployment rate of USA during the Presidency of Barack Obama in 2011. It was a wrap up of the entire year’s unemployment rate done on December 2011. The target audience of this particular graph is the entire population of USA.
The visualisation chosen had the following three main issues:
Reference
The following code was used to fix the issues identified in the original.
library(readr)
library(ggplot2)
library(magrittr)
Unemployment <- read_csv("~/Downloads/Unemployment rate.csv")
Unemployment$Month <-factor(Unemployment$Month,
levels = c("Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov"))
p <- ggplot(data = Unemployment, aes(x = Month, y = `Unemployment rate`))
pp <-p + geom_line(aes(group = 1),colour = "turquoise4") +
labs(
title = "Unemployment rate Under President Obama",
x = "2011",
y = "Unemployment rate(%)"
)+
geom_text(aes(label = `Unemployment rate`),size =3,position = position_dodge(width=0.2),hjust=1,vjust = 2)+
geom_point(colour = "turquoise4") +
ylim(0,10) +
theme_minimal()
Data Reference U.S. Bureau of Labor Statistics. 2011. Unemployment Rate Falls To 8.6 Percent In November 2011. [online] Available at: https://www.bls.gov/opub/ted/2011/ted_20111205_data.htm.
The following plot fixes the main issues in the original.