View source: R/plots_efficacy.R
| plot_swimmer | R Documentation |
One bar per subject, with points for objective response and progression. Limited to the longest durations so the figure stays readable.
plot_swimmer(data, id = "usubjid", arm = "arm",
duration = "trtdur_months", response_time = "resp_months",
progression_time = "pd_months", max_n = 30, xlab = "Months",
title = "Time on treatment")
data |
Subject-level data. |
id, arm, duration |
Column names. |
response_time, progression_time |
Optional column names. |
max_n |
Maximum subjects, taken as the longest durations. |
xlab, title |
Labels. |
A ggplot object.
onc <- simulate_oncology(n_per_arm = 12)
plot_swimmer(onc$adsl, max_n = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.