Description Usage Arguments Value Examples
Create a line chart presenting specific country/countries COVID information within a time period
1 2 3 4 5 6 7 8 |
df |
Data frame of the selected covid data from get_data() |
location |
Charactor vector of target country names. By default c('Canada) |
val |
Quantitative values to be aggregated. Must be numeric variable. Also known as a 'measure'. By default 'new_cases' |
date_from |
Start date of the data range with format like '2021-10-31'. By default 'NULL' is used to represent 7 days prior to today's date |
date_to |
End date of data range with format like '2021-10-31'. By default 'NULL' is used to represent 7 days prior to today's date |
title |
The title of the plot. By default will be generated based on val |
A ggplot line chart
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.