Make a plot comparing the fit and forecasted hospital admissions from the wastewater and hospital admissions model for a few example states
Source:R/figure_predicted_actual_examples.R
plot_pred_actual_hosp.Rd
Make a plot comparing the fit and forecasted hospital admissions from the wastewater and hospital admissions model for a few example states
Usage
plot_pred_actual_hosp(
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
- loc_to_plot
A string indicating the state abbreviations 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