Intro

A demo of every function in this package.

# devtools::install_github("tomzhang255/covidviz")
library(covidviz)

Query 1

?query1
query1()
query1(log_scale = TRUE)
query1(log_scale = TRUE, projection = "gilbert")
query1(log_scale = TRUE, projection = "gilbert", palette = "YlGnBu")
query1(plot_type = "dynamic", log_scale = TRUE, projection = "gilbert", palette = "YlGnBu")

Query 2

?query2
query2(plot_type = "dynamic", fill = "avg_daily_new_cases_pre_vac", log_scale = TRUE, palette = "Greys")

Query 3

?query3
query3(plot_type = "dynamic", fill = "new_cases", log_scale = TRUE, palette = "YlOrRd")

Query 4

?query4
query4(plot_type = "dynamic", start = "05-22-2020", end = c("new_cases" = 100),
       var = "new_cases", func = "mean", palette = "YlGn")

Query 5

?query5
query5(plot_type = "dynamic", var = "new_deaths", country = c("Norway", "Sweden", "Finland"),
       start = "05-22-2020", end = "12-22-2020")
query5(plot_type = "dynamic", var = "new_deaths", country = c("Norway", "Sweden", "Finland"),
       start = "05-22-2020", end = "12-22-2020", group_by = "month", bar_type = "error")

Query 6

?query6
query6(plot_type = "dynamic", x = "new_cases", "new_deaths", country = "Canada",
       start = "04-01-2020", end = "11-01-2020")
query6(plot_type = "dynamic", x = "new_cases", "new_deaths", country = "Canada",
       start = "04-01-2020", end = "11-01-2020", use_bins = TRUE)


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