Description Usage Value Examples
View source: R/get_italy_regional_cases.R
Fetches COVID data by region. Data is collated by the Italian Department of Civil Protection and is available on github: https://github.com/pcm-dpc/COVID-19
1 |
A dataframe of Italian regional case counts.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Code
get_italy_regional_cases
## Not run:
day_of_cases <- NCoVUtils::get_italy_regional_cases() %>%
dplyr::filter(date == "2020-02-24")
rnaturalearth::ne_states("Italy", returnclass = "sf") %>%
dplyr::group_by(provnum_ne) %>%
dplyr::summarise(geometry = sf::st_union(geometry)) %>%
dplyr::full_join(day_of_cases, by = c("provnum_ne" = "region_code")) %>%
ggplot2::ggplot(ggplot2::aes(fill=cases)) +
ggplot2::geom_sf()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.