get_canada_regional_cases.Rd
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
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
if (FALSE) { 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') }