Skip to contents

One bar per subject: the minimum post-baseline percent change, from PCHG or computed from AVAL and BASE.

Usage

fig_waterfall(
  df,
  ctx = fig_ctx(),
  ref_lines = NULL,
  base_size = NULL,
  config = NULL
)

Arguments

df

Analysis data (BDS).

ctx

A fig_ctx() list.

ref_lines

Optional horizontal reference lines (for example c(-30, 20)).

base_size

Font size; NULL uses the configuration.

config

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

Value

A ggplot.

Examples

p <- fig_waterfall(ex_adlb[ex_adlb$PARAMCD == "ALT", ], ref_lines = c(-30, 20))
class(p)
#> [1] "ggplot2::ggplot" "ggplot"          "ggplot2::gg"     "S7_object"      
#> [5] "gg"