plot_exposure: Treatment duration by arm

View source: R/plots_safety.R

plot_exposureR Documentation

Treatment duration by arm

Description

Box plot of exposure with the median in the caption.

Usage

plot_exposure(data, duration = "trtdur_days", arm = "arm",
  xlab = "Treatment duration (days)", title = "Exposure")

Arguments

data

Subject-level data.

duration, arm

Column names.

xlab, title

Labels.

Value

A ggplot object.

Examples

saf <- simulate_safety(n_per_arm = 20)
plot_exposure(saf$adsl)

trialfigs documentation built on Oct. 15, 2026, 5:09 p.m.