enw_plot_nowcast_quantiles: Plot nowcast quantiles

View source: R/plot.R

enw_plot_nowcast_quantilesR Documentation

Plot nowcast quantiles

Description

Plot nowcast quantiles

Usage

enw_plot_nowcast_quantiles(nowcast, latest_obs = NULL, log = FALSE, ...)

Arguments

nowcast

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

latest_obs

A data.frame of observed data containing at least a confirm count variable and the same date variable as in the main data.frame used for plotting.

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_obs(), enw_plot_pp_quantiles(), enw_plot_quantiles(), enw_plot_theme(), plot.epinowcast()

Examples

nowcast <- enw_example("nowcast")
nowcast <- summary(nowcast, probs = c(0.05, 0.2, 0.8, 0.95))
enw_plot_nowcast_quantiles(nowcast)

seabbs/epinowcast documentation built on Aug. 28, 2024, 12:31 p.m.