knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(covid19Tracker)
options(scipen = 999)

Geting Data

You can get full data by simply calling fetchData(). it returns a dataframe. Each row contains information of a single country in a single day.

Columns are:

dataset <- fetchData()
tail(dataset)

You can view list of all countrie that you can pass to plotCountryTimeline()

unique(dataset$Region)

Visualizing Data

You can plot a choropleth map of world with plotWorldMap(). This function has two arguments:

An example with one date

dateRange = c("2020-08-23")
type = "Death"
plotWorldMap(dateRange, type)

An example with two dates

dateRange = c("2020-08-23", "2020-08-24")
type = "Confirmed"
plotWorldMap(dateRange, type)


PlasterPate/covid19Tracker documentation built on Dec. 31, 2020, 4:18 p.m.