get_italy_regional_cases: Italian Regional Case Counts

Description Usage Value Examples

View source: R/get_italy_regional_cases.R

Description

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

Usage

1

Value

A dataframe of Italian regional case counts.

Examples

 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)

epiforecasts/NCoVUtils documentation built on June 26, 2020, 1:20 a.m.