query2: Query 2

View source: R/queries.R

query2R Documentation

Query 2

Description

For the countries that have vaccines, compare the average daily new cases (or deaths) of the days before the first vaccine dose administered and the days after that. Also, construct a 95% confidence interval for each.

Usage

query2(
  plot_type = "static",
  fill = "avg_daily_new_cases_pre_vac",
  log_scale = FALSE,
  projection = "mercator",
  palette = "YlOrBr"
)

Arguments

plot_type

"static" | "dynamic"

fill

"avg_daily_new_cases_pre_vac" | "avg_daily_new_cases_post_vac" | "avg_daily_new_deaths_pre_vac" | "avg_daily_new_deaths_post_vac" - The map will be filled by this variable.

log_scale

FALSE | TRUE - Apply a log transformation on the selected variable? Could be useful if variable contains outliers.

projection

"mercator" | "globular" | "gilbert"

palette

"YlOrBr" or any sequential palette from RColorBrewer: "YlOrRd", "YlOrBr", "YlGnBu", "YlGn", "Reds", "RdPu", "Purples", "PuRd", "PuBuGn", "PuBu", "OrRd", "Oranges", "Greys", "Greens", "GnBu", "BuPu", "BuGn", "Blues".

Value

Either a static map produced with ggplot2 or a dynamic one produced with leaflet.


tomzhang255/covidviz documentation built on May 15, 2022, 6:59 a.m.