Click the Original, Code and Reconstruction tabs to read about the issues and how they were fixed.
Objective
The objective of the visualisation is to highlight how mortgage debt in the U.S. has changed over time.The visual is meant to support the headline of America’s Mortgage Debt Spiral Accelerates to All-Time High.
The visualisation chosen had the following three main issues:
Reference * howmuch.net Website https://howmuch.net/articles/mortgage-debt-outstanding-by-year
The following code was used to fix the issues identified in the original.
library(ggplot2)
library(scales)
library(readxl)
mortage <- read_excel("Mortgage Debt Outstanding.xlsx")
debit <- ggplot(data=mortage, aes(x=reorder(Year, -debit), y=debit))+
geom_bar(position="dodge",stat="identity", fill = "#990033", width=0.6)+
labs(
title = "Total Mortage Oustanding by the Year in US", x = "Mortage",
y = "Year")
Data Reference
*howmuch.net https://howmuch.net/sources/mortgage-debt-outstanding-by-year
The following plot fixes the main issues in the original.