knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of covidviz is to provide the user with a set of functions that perform some non-trivial data wrangling and produce plots as results on the OWID COVID dataset.
You can install the development version of covidviz from GitHub with:
# install.packages("devtools") devtools::install_github("tomzhang255/covidviz")
This is an example query:
library(covidviz) query1(plot_type = "static", fill = "cases", log_scale = TRUE, projection = "globular")
Plot outputs can be dynamic as well:
query3(plot_type = "dynamic", log_scale = TRUE)
There are 6 such queries in total coded as functions. Inspect their documentation by issuing a command of the following form: ?query1
tests/demo.Rmd contains a collection of function demos.
# devtools::build_readme()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.