plot_spider: Spider plot of percent change over time

View source: R/plots_efficacy.R

plot_spiderR Documentation

Spider plot of percent change over time

Description

Individual tumor trajectories with the arm mean overlaid.

Usage

plot_spider(data, id = "usubjid", time = "week", pct = "pct_change",
  arm = "arm", title = "Percent change in sum of diameters")

Arguments

data

Longitudinal data, one row per subject per visit.

id, time, pct, arm

Column names.

title

Plot title.

Value

A ggplot object.

Examples

onc <- simulate_oncology(n_per_arm = 8)
plot_spider(onc$adtr)

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