Skip to contents

ADTTE conventions: AVAL is the time and CNSR == 1 means censored. Requires the survival package.

Usage

fig_km(
  df,
  ctx = fig_ctx(),
  censor_marks = TRUE,
  base_size = NULL,
  config = NULL
)

Arguments

df

Analysis data (BDS).

ctx

A fig_ctx() list.

censor_marks

Mark censored observations?

base_size

Font size; NULL uses the configuration.

config

A tlf_config(); NULL resolves through tlf_get_config().

Value

A ggplot.

Examples

if (requireNamespace("survival", quietly = TRUE)) p <- fig_km(ex_adtte)