Skip to contents

Plots for visualizing postperior predictive draws or quantiles compared to observed data. Spaghetti plot of hospital admissions data compared to model draws

Usage

plot_spaghetti_hosp_draws(
  draws_w_data,
  location,
  model_type = c("ww", "hosp"),
  n_draws = 100
)

Arguments

draws_w_data

A long tidy dataframe containing draws from the model of the estimated hospital admissions joined with both the data the model was calibrated to and the later observed data.

location

the jursidiction the data is from

model_type

type of model the output is from, options are "ww" or "hosp"

n_draws

number of draws to plot, default = 100

Value

a ggplot object showing posterior predictive draws for hospital admissions alongside the calibration and evaluation data