get_germany_regional_cases: Get German daily cases by Bundeslander or Landkreis

Description Usage Arguments Value Examples

View source: R/get_germany_regional_cases.R

Description

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

Usage

1
get_germany_regional_cases(geography = "states")

Arguments

geography

Character string indicating the geographic level to return.

Value

A dataframe of case and death counts in German regions

Examples

 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)

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