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
- Posted on:
- December 10, 2019
- Length:
- 1 minute read, 117 words
- Categories:
- dataviz
- Tags:
- tidy-tuesday