Skip to contents

Creates a line plot showing the cumulative reduction in a specified incidence number over time.

Usage

inc_cum(
  inc,
  data_weighted_ds_wide_collapse,
  scale_y_continuous_limits = NULL,
  scale_y_continuous_breaks = ggplot2::waiver(),
  scale_y_continuous_labels = ggplot2::waiver()
)

Arguments

inc

A character string specifying the incidence to plot. Options are: "asthma", "ckd", "diabetes", "ischemia", "stroke".

data_weighted_ds_wide_collapse

A data frame with differences between intervention and baseline values for incidences.

scale_y_continuous_limits

A numeric vector specifying the limits of the scales for continuous y aesthetics.

scale_y_continuous_breaks

A numeric vector specifying the breaks of the scales for continuous y aesthetics.

scale_y_continuous_labels

A numeric vector specifying the labels of the scales for continuous y aesthetics.

Value

A ggplot object representing the specified plot.