Skip to contents

Make a plot comparing the fit and forecasted hospital admissions from the wastewater-informed and hospital admissions-only models.

Usage

plot_model_hosp_t_comparison(
  hosp_quantiles,
  loc_to_plot,
  date_to_plot,
  n_forecast_days = 28,
  n_calib_days = 90
)

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, for either or both the wastewater model and the hospital admissions-only model.

loc_to_plot

A string indicating the state abbreviation of the state to plot.

date_to_plot

A character string indicating what forecast date to plot in IS08601 format (YYYY-MM-DD).

n_forecast_days

An integer indicating the number of days to show the forecast for, default is 28.

n_calib_days

An integer indicating the number of days to show the calibration data for, default is 90.

Value

a ggplot object with all model forecasts plotted against observed data and models differentiated by fill/line color.