Tidy Tuesday: Replicating Plots in R

By Matthew Henderson in dataviz

December 10, 2019

Tidy Tuesday in week fifty of 2019 was all about this blog post by Rafael Irizarry on replicating plots in R.

I chose to focus on a heatmap showing infectious diseases in the United States before and after the introduction of vaccines.

My plot is heavily based on Rafael’s code with just a few extra annotations and a change of scale to match the original version published in the Wall Street Journal.

This was my first attempt at adding annotations outside the main plotting area. I learned how to create the annotations I wanted for this plot from the Tidy Tuesday work of Georgios Karamanis. Especially his week 36 entry for 2021.

My code is here: https://github.com/MHenderson/replicating-plots-in-r

Plot shows a heat map of measles cases per one hundred thousand people measured from 1928 to 2003 across all fifty US states and the District of Columbia. Showing that after 1963 when measles vaccine was introduced there was a dramatic drop in the number of measles cases throughout the United States.

Posted on:
December 10, 2019
Length:
1 minute read, 117 words
Categories:
dataviz
Tags:
tidy-tuesday
See Also:
Tidy Tuesday: Tornadoes
Tidy Tuesday: Childcare Costs
Tidy Tuesday: Internet Access