enw_plot_pp_quantiles: Plot posterior prediction quantiles

View source: R/plot.R

enw_plot_pp_quantilesR Documentation

Plot posterior prediction quantiles

Description

Plot posterior prediction quantiles

Usage

enw_plot_pp_quantiles(pp, log = FALSE, ...)

Arguments

pp

A data.frame of summarised posterior predictions estimates containing at least a confirm count column and a report_date date variable.

log

Logical, defaults to FALSE. Should counts be plot on the log scale.

...

Additional arguments passed to enw_plot_pp_quantiles().

Value

A ggplot2 plot.

See Also

Plotting functions enw_plot_nowcast_quantiles(), enw_plot_obs(), enw_plot_quantiles(), enw_plot_theme(), plot.epinowcast()

Examples

nowcast <- enw_example("nowcast")
nowcast <- summary(
 nowcast, type = "posterior_prediction", probs = c(0.05, 0.2, 0.8, 0.95)
)
enw_plot_pp_quantiles(nowcast) +
 ggplot2::facet_wrap(ggplot2::vars(reference_date), scales = "free")

seabbs/epinowcast documentation built on Sept. 20, 2024, 2:39 a.m.