Description Usage Arguments Examples
Makes a plot of positives, active and recovered versus time. New cases per day is added as a line. If lockdown date is given, a line is added showing that. Plot is shown for a specific region (state, country, province, etc). Use regions() to see what locations are available. See ?getdatajhu, ?getdataitaly, ?getdatastates to see the data sources.
1 |
data |
Name of a data set. "states", "world" or "italy" |
region |
Name of a region in the region (location) column of the dataset (dataset$region). Might be country, state, or province. Use regions() to see what is available. |
lockdown |
(optional) Date of the lockdown in "2020-03-11" format. |
1 2 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.