Compare two hospital admissions forecasts over time.
Source:R/plot_example_scores.R
plot_forecast_comparison_t.Rd
Compare two hospital admissions forecasts over time.
Usage
plot_forecast_comparison_t(
hosp_quantiles,
loc_to_plot,
horizon_to_plot,
horizon_days_ahead,
days_to_show_prev_data = 14
)
Arguments
- hosp_quantiles
A tibble containing the calibrated hospital admissions data, the evaluation hospital admissions data, and the quantiles of the calibrated and forecasted admissions
- loc_to_plot
A string indicating the location to plot, as a two-letter USPS abbreviation.
- horizon_to_plot
A string indicating what horizon period to plot, one of
nowcast
,1 wk
, or4 wks
- horizon_days_ahead
An integer corresponding to the horizon days to plot
- days_to_show_prev_data
An ingeger indicating how many days before the last forecast date to show the data, default is
14