Description Usage Value Examples
View source: R/get_russia_regional_cases.R
Fetches COVID case counts by region This data is sourced from https://github.com/grwlf/COVID-19_plus_Russia#data-sources
1 |
A dataframe of case counts in Russian regions
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.