Plot REACT

spim_plot_react(
  dat,
  regions,
  date_min,
  ymax,
  age_band = NULL,
  add_betas = FALSE,
  title = NULL
)

Arguments

dat

Combined data set

regions

Vector of regions to plot

date_min

Starting date for plot

ymax

Maximum percentage on y-axis

age_band

Age band to plot. Can be a vector of age bands to plot if regions is of length 1

add_betas

Logical, indicating if we should add betas

title

Title for the figure, only used if age_band is a vector