knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(covid19Tracker)
options(scipen = 999)
dataset <- fetchData() tail(dataset)
unique(dataset$Region)
dateRange: A vector of length 1 or 2 containing date strings. If you pass one date, a plot is drawn for that specific day. If you pass two dates, a plot is drawn for days between these two day.(first and last day wich are passed, are included). Proper formats of date is "yyyy-mm-dd" and "yyyy/mm/dd"
type: A string indicating the case of infected person. Can be one of "Confirmed" or "Death"
dateRange = c("2020-08-23") type = "Death" plotWorldMap(dateRange, type)
dateRange = c("2020-08-23", "2020-08-24") type = "Confirmed" plotWorldMap(dateRange, type)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.