Description Usage Arguments Value Examples
View source: R/get_us_regional_cases.R
Fetches daily COVID cases by state or county collated by the New York Times Data is available at https://github.com/nytimes/covid-19-data
1 | get_us_regional_cases(level = "state", out = "timeseries")
|
level |
Character String specifying admin level "state", "county", default: "state". |
out |
Character String specifying output data format "timeseries", "total", default: "timeseries". |
A data.frame of COVID cases by region in the US
1 2 3 4 5 6 7 8 9 10 11 12 13 | get_us_regional_cases(level = 'state', out = 'timeseries')
## Not run:
regions <- rnaturalearth::ne_states("United States of America", returnclass = "sf")
cases <- get_us_regional_cases(out = 'total')
regions %>% dplyr::filter(name %in% cases$state) %>%
ggplot2::ggplot() + ggplot2::geom_sf()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.