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.

  • get_covid_data()

    Retrieve cleaned and formatted data of specified type and within (optionally) provided time ranges and locations

  • plot_time_series()

    Function for plotting time series trends in Covid data, including options for trendlines and smoothing

  • calculate_stat_summary()

    Function for returning key statistical information about Covid data, such as long run trends and comparisons between provinces

  • plot_geographical()

    Function for plotting chloropleth maps with Covid data

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:

  • COVID19 - For Covid data retrieval
  • covdata - For Covid data retrieval
  • ggplot2 - For data visualizations
  • tmap - For chloropleth data visualizations

Installation

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

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