get_colombia_regional_cases: Get Colombia daily cases

Description Usage Value Examples

View source: R/get_colombia_regional_cases.R

Description

Fetches COVID case, death, and test counts by region Sourced from Ideas Col: https://github.com/ideascol/covid19

Usage

1

Value

A dataframe of case, death and testing counts in Colombian regions

Examples

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

regions <- rnaturalearth::ne_states("Colombia", returnclass = "sf")
data <- get_colombia_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::geom_sf(ggplot2::aes(fill = cases))

## End(Not run)

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