Generic quantile plot
Arguments
- obs
A
data.frame
of summarised posterior estimates containing at least aconfirm
count column and a date variable- latest_obs
A
data.frame
of observed data containing at least aconfirm
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
ggplot2::aes()
must at least specify the x date variable.
See also
Plotting functions
enw_plot_nowcast_quantiles()
,
enw_plot_pp_quantiles()
,
enw_plot_quantiles()
,
enw_plot_theme()
,
plot.epinowcast()
Examples
nowcast <- enw_example("nowcast")
obs <- enw_example("obs")
# Plot observed data by reference date
enw_plot_obs(obs, x = reference_date)
# Plot observed data by reference date with more recent data
enw_plot_obs(nowcast$latest[[1]], obs, x = reference_date)