Set Up

knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
library(ggformula)
theme_set(theme_bw())

JHU COVID-19 data

As you might imagine, keeping a comprehensive list of all COVID-19 cases worldwide involves pulling data from numerous sources (and frequent updating). Fortunately, some folks at Johns Hopkins have been doing that work and putting the resulting data into a github repository that anyone can access.

Finding some data

You could clone the repository, but you also just pull the data directly from their repository. They’ve split the data into “daily reports” (one CSV per day, all measures) and “time series” (one CSV per measure, all days). Here is an example page showing one of the data sets available to you.