R code to reproduce the analysis and charts underlying this Nov. 11, 2020 BuzzFeed News article on the influence of COVID-19 death rates and surges in unemployment on voter swings in the 2020 presidential election.
The code to process the data and repeat the analysis can be found online here, and in the R Markdown document index.Rmd.
Email the author Peter Aldhous at [email protected].