Description Usage Arguments Value Examples
View source: R/plot_timeseries.R
Create a plot of the number of covid cases over time.
1 | plot_timeseries(covid_df, metric, start = "", end = "")
|
covid_df |
a dataframe containing covid data to plot |
metric |
the name of column from covid data to plot along time |
start |
a string indicating the start date in pattern YYYY-MM-DD |
end |
a string indicating the end date in pattern YYYY-MM-DD |
plot object
1 2 | df <- get_covid_data()
plot_timeseries(df,cases)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.