knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

covidviz

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.

Installation

You can install the development version of covidviz from GitHub with:

# install.packages("devtools")
devtools::install_github("tomzhang255/covidviz")

Example

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()


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