Click the Original, Code and Reconstruction tabs to read about the issues and how they were fixed.
Source: Aperion Care (n.d.)
Objective
This data visualization is to show how different categories of inventions and advancements have affected modern life expectancy, and the number of lives saved by these inventions. The purpose of this visualization is to let their target audience know which types of inventions are saving the most lives so they can invest more resources in those inventions to increase modern life expectancy. This visualization includes the top fifty inventions that have had the greatest impact on modern life expectancy over the past two centuries.
The target audience for original data visualization can be people interested in public health and innovation, such as healthcare professionals, educators, researchers, and those individuals interested in understanding how inventions affect modern life expectancy.
The visualisation chosen had the following three main issues:
Reference
The following code was used to fix the issues identified in the original.
library(ggplot2)
willtolive <- read.csv("willtolive.csv")
willtolive <- willtolive[c(1:33),] # Remove "NOW/FUTURE" inventions
willtolive$NUMBER.OF.LIVES.SAVED <- as.integer(willtolive$NUMBER.OF.LIVES.SAVED)
willtolive$NUMBER.OF.LIVES.SAVED <- willtolive$NUMBER.OF.LIVES.SAVED/1000000 # Convert to Million
willtolive$CATEGORY <- as.factor(willtolive$CATEGORY)
p1 <- ggplot(data = willtolive, aes(x = reorder(TECHNOLOGY, YEAR.INVENTED), y = NUMBER.OF.LIVES.SAVED, fill = CATEGORY)) +
geom_bar(stat = "identity") +
geom_text(aes(label=NUMBER.OF.LIVES.SAVED.MILLION), vjust=-0.3, size=2) +
theme(axis.text.x = element_text(angle = 90, vjust = 0.3, hjust=1),
plot.title = element_text(size = 18),
text=element_text(family="Georgia"),
title = element_text(face = "bold")) +
scale_fill_brewer(palette = "Set1") +
labs(x = "Technology invented over years", y = "Number of lives saved (millions)", title = "WILL TO LIVE", subtitle = "33 inventions and advancements in year 1850 - 2000 that drive modern life expectancy", caption = "Source: Aperion Care")
Data Reference
The following plot fixes the main issues in the original.