A demo of every function in this package.
# devtools::install_github("tomzhang255/covidviz") library(covidviz)
?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")
?query2
query2(plot_type = "dynamic", fill = "avg_daily_new_cases_pre_vac", log_scale = TRUE, palette = "Greys")
?query3
query3(plot_type = "dynamic", fill = "new_cases", log_scale = TRUE, palette = "YlOrRd")
?query4
query4(plot_type = "dynamic", start = "05-22-2020", end = c("new_cases" = 100), var = "new_cases", func = "mean", palette = "YlGn")
?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")
?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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.