Plot Pillar 2 positivity

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

Arguments

dat

Combined data set

regions

Vector of regions to plot

age_band

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

date_min

Starting date for plot

ymax

Maximum percentage on y-axis

add_betas

Logical, indicating if we should add betas

title

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