plot_cases | R Documentation |
Plot the posterior prediction for cases
plot_cases(
posterior,
obs = NULL,
forecast_dates = NULL,
all_obs = FALSE,
central = FALSE,
col = NULL,
log = TRUE
)
posterior |
A dataframe of posterior output as produced by
|
obs |
A data frame of observed data as produced by |
forecast_dates |
A data.frame in the format produced by
|
all_obs |
Logical, defaults to |
central |
Logical, defaults to FALSE. Should the mean and median
central estimates be plot as dashed and solid lines respectively. Requires
|
col |
A character string denoting the variable to use to stratify the ribbon plot. Defaults to "type" which indicates the data stream. |
log |
Logical, defaults to |
A ggplot2
plot.
Plotting functions
add_forecast_dates()
,
plot.fv_forecast()
,
plot.fv_posterior()
,
plot_default()
,
plot_growth()
,
plot_pairs()
,
plot_posterior()
,
plot_rt()
,
plot_theme()
,
plot_voc_advantage()
,
plot_voc_frac()
,
save_plots()
posterior <- fv_example(strains = 2, type = "posterior")
# default with log transform
plot_cases(posterior)
# without log transform
plot_cases(posterior, log = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.