get_russia_regional_cases: Get Russia daily cases

Description Usage Value Examples

View source: R/get_russia_regional_cases.R

Description

Fetches COVID case counts by region This data is sourced from https://github.com/grwlf/COVID-19_plus_Russia#data-sources

Usage

1

Value

A dataframe of case counts in Russian regions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 


regions <- rnaturalearth::ne_states(geounit = "Russia", returnclass = "sf")
data <- get_russia_regional_cases() %>%
  dplyr::filter(date == max(date))
regions_with_data <- dplyr::left_join(regions, data, by = "iso_3166_2")
regions_with_data %>%
  ggplot2::ggplot(ggplot2::aes(fill = cases)) +
  ggplot2::geom_sf() +
  ggplot2::coord_sf(xlim = c(20, max(sf::st_coordinates(regions_with_data))))
  
## End(Not run)

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