plot_single_location: Plot single location

View source: R/plotting_functions.R

plot_single_locationR Documentation

Plot single location

Description

Function receives data frame/tibble/dt, and names of smoothed the empirical data and the smoothed outcome, xvar, and yvar and returns a plot

Usage

plot_single_location(dt, sm = "phat", xvar = "Date", yvar = "Confirmed", ...)

Arguments

dt

data frame containing the data to be plotted

sm

string name of column in dt containing smoothed observations

xvar

string name of column in dt containing xvar, default is "Date"

yvar

string name of column in dt containng yvar, default is "Confirmed"

Value

ggplot2 object

Examples

plot_single_location(brazil)
plot_single_location(us,yvar="Deaths")

lmullany/rawcoviddata documentation built on March 21, 2023, 10:04 a.m.