Plot trajectories by age

spim_plot_trajectories_by_age(
  dat,
  regions,
  what,
  date_min = NULL,
  age_band = NULL,
  with_forecast = TRUE,
  add_betas = FALSE,
  title = NULL
)

Arguments

dat

Combined data set

regions

Vector of regions to plot

what

Trajectory to plot

date_min

Starting date for plot

age_band

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

with_forecast

Logical, indicating if we should add the forecast

add_betas

Logical, indicating if we should add betas

title

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