Plots credible intervals for the observed data under the posterior predictive distribution, and for a specific observation type. The user can control the levels of the intervals and the plotted group(s). This is a generic function.
# S3 method for epimodel posterior_sample_size(object) # S3 method for epimodel all_obs_types(object) plot_linpred(object, ...) # S3 method for epimodel plot_linpred( object, type = NULL, groups = NULL, dates = NULL, date_breaks = "2 weeks", date_format = "%Y-%m-%d", levels = c(30, 60, 90), ... )
Additional arguments for
the name of the observations to plot. This should match one
of the names of the
A length 2 vector of
This function attempts to coerce the
A numeric vector defining the levels of the plotted credible intervals.
ggplot object which can be further modified.