Description Usage Arguments Value
Plot reporting rate through time from SEIJR trajectory sample and reported cases
1 2 3 4 5 6 7 8 | SEIJR_plot_reporting(
trajdf,
case_data,
date_limits = c(as.Date("2020-02-01"), NA),
path_to_save = "reporting.png",
errorbar = T,
...
)
|
trajdf |
Either a dataframe or a path to rds containing a data frame with a posterior sample of trajectories (see combine_traj) |
case_data |
dataframe containing reported/confirmed cases to be plotted alongside estimates. *Must* contain columns 'Date' and 'Confirmed'. Ensure Date is not a factor or character (see as.Date ) |
date_limits |
a 2-vector containing bounds for the plotting window. If the upper bound is missing, will use the maximum time in the trajectories |
path_to_save |
Will save a png here |
errorbar |
T/F plotting of errorbars on each point |
a list with derived outputs from the trajectories. The first element is a ggplot object if you want to further customize the figure
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.