Description Usage Arguments Value Examples
View source: R/get_canada_regional_cases.R
Fetches daily COVID cases, and deaths by province collated by Provincial Canadian Health Authorities Data is available at https://www.canada.ca/en/public-health/services/diseases/2019-novel-coronavirus-infection.html
1 | get_canada_regional_cases(out = "timeseries")
|
out |
Character String specifying output data format "timeseries", "total", default: "timeseries". |
A data.frame of COVID cases by province in Canada
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
total_cases = get_canada_regional_cases(out = "total")
rnaturalearth::ne_states(country = "canada", returnclass="sf") %>%
dplyr::left_join(total_cases, by = c('name_en' = 'province')) %>%
ggplot2::ggplot() +
ggplot2::theme_void() +
ggplot2::geom_sf(aes(fill = cases_confirmed)) +
ggplot2::labs(fill = 'Confirmed Cases')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.