spim_plot_trajectories_by_age: Plot trajectories by age

View source: R/plot_combined.R

spim_plot_trajectories_by_ageR Documentation

Plot trajectories by age

Description

Plot trajectories by age

Usage

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


mrc-ide/spimalot documentation built on Oct. 15, 2024, 12:15 p.m.