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

CovidTrackerR

R-CMD-check codecov

CovidTrackerR provides basic data cleaning, wrangling and plotting of Covid tracking data in Canada.

Functions

The CovidTrackerR package is designed for the easy retrieval and analysis of data pertaining to Covid trends in Canada, including information about cases, vaccinations and testing. The package serves as a wrapper for the opencovid.ca API, and provides additional helper functions for visualising the data, either as a time series or in the form of a map.

Installation

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

# install.packages("devtools")
devtools::install_github("UBC-MDS/Group28-CovidTracker-R")

Documentation

A vignette with full usage demonstration and function documentation can be found here https://ubc-mds.github.io/Group28-CovidTracker-R/

Usage and Examples

CovidTrackerR can be used to acquire covid data, generate choropleth maps and time series plots, and compute summary statistics as follows:

library(CovidTrackerR)
covid_data <- get_covid_data('active', 'BC')
head(covid_data)
covid_df <- get_covid_data()
plot_geographical(covid_df, cases)
plot_timeseries(covid_df,cases)
calculate_stat_summary(covid_df,'cases')

Similar Packages

There are several R packges which have some overlapping functionality as our package, but none which perform all the data acquisition, analysis and graphing tasks which CovidTracker encompasses. The packages designed for covid data retrieval also do not use the same data source as CovidTracker and do not provide the same level of granularity. Some examples of related R packages useful for Covid data retrieval and data visualizations include:



UBC-MDS/Group28-CovidTracker-R documentation built on Feb. 6, 2022, 7 a.m.