joachim-gassen / tidycovid19

{tidycovid19}: An R Package to Download, Tidy and Visualize Covid-19 Related Data
https://joachim-gassen.github.io/tidycovid19/
Other
146 stars 44 forks source link

Regional GCMR data #18

Closed itamarcaspi closed 4 years ago

itamarcaspi commented 4 years ago

Would it be possible to add regional/subregional data to the GCMR download function?

joachim-gassen commented 4 years ago

Apologies for the delay. While the merged data set remains at the country level, an update last week now allows the download of regional data where feasible. E.g.:

library(tidyverse)
library(tidycovid19)
df <- download_google_cmr_data(type = "country_region", cached = TRUE)

df %>% filter(iso3c == "DEU") %>%
  ggplot(aes(x = date, y = retail_recreation, color = region)) +
  geom_line()

Does that work for you?

itamarcaspi commented 4 years ago

It works. Thanks!

joachim-gassen commented 4 years ago

Perfect. Then let's consider this issue closed.