Description Usage Arguments Value Examples
View source: R/get_germany_regional_cases.R
Fetches COVID case counts by region in Germany. This data is sourced from the Robert Koch Institute: https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0
1 | get_germany_regional_cases(geography = "states")
|
geography |
Character string indicating the geographic level to return. |
A dataframe of case and death counts in German regions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
country <- rnaturalearth::ne_countries(scale="large",
country = "Germany",
returnclass = 'sf')
regions <- rnaturalearth::ne_states("Germany", returnclass = "sf")
data <- get_germany_regional_cases() %>%
dplyr::filter(date == max(date))
regions_with_data <- regions %>%
dplyr::left_join(data,
by = c("name" = "state"))
ggplot2::ggplot(regions_with_data) +
ggplot2::geom_sf(ggplot2::aes(fill = cases))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.