View source: R/plotting_functions.R
plot_single_location | R Documentation |
Function receives data frame/tibble/dt, and names of smoothed the empirical data and the smoothed outcome, xvar, and yvar and returns a plot
plot_single_location(dt, sm = "phat", xvar = "Date", yvar = "Confirmed", ...)
dt |
data frame containing the data to be plotted |
sm |
string name of column in |
xvar |
string name of column in |
yvar |
string name of column in |
ggplot2 object
plot_single_location(brazil)
plot_single_location(us,yvar="Deaths")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.