knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(covidPlots)
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.