knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(covidPlots)

Examples

This package has three functions. First one returns global covid-19 data as a dataframe.

library(covidPlots)
covidData <- covidPlots::updateCovid()
head(covidData)

The second one plots a world map colored by the number of total cases, total deaths or total recovers.

covidPlots::worldCovidPlot(day = "2020-10-1",type = "cases")

Lastly, the third function uses the data from updateCovid to draw time series of new cases, new deaths, and new recovers for a country.

covidPlots::covidTimeSeries(country = 'egypt',min.date = '2020-01-22',max.date = '2020-10-2')


Iarima/covidPlots documentation built on Dec. 31, 2020, 1:04 p.m.