Skip to contents

Plot Disease Incidence Rates

Usage

plot_incidence(
  df,
  disease,
  x_axis = "year",
  split_by = "scenario",
  age = NULL,
  year = NULL
)

Arguments

df

A data frame containing batch output results from DYNAMO-HIA.

disease

Disease to plot prevalence rates for.

x_axis

Column to use for x-axis (default "year").

split_by

Column to use for color/fill splitting (default "scenario").

age

Optional age group to filter. By default (NULL), the youngest age group is used.

year

Optional year to filter. By default (NULL), the earliest year is used.

Value

A ggplot object representing incidence rates.