Skip to contents

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, or 4 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

Value

A ggplot object containing a plot of the retrospective hospital admissions data compared to the nowcasted/forecasted quantiles and median for the specified horizon to plot, colored by the model type