Skip to contents

A realistic oncology clinical trial dataset demonstrating comprehensive swimmer plot analysis for regulatory submissions. Includes detailed clinical milestones, tumor characteristics, and biomarker information.

Usage

data(swimmer_unified_oncology)

Format

A data frame with 20 rows and 12 variables:

PatientID

Character. Unique patient identifiers (PT001-PT020)

StartTime

Numeric. Treatment start time (all patients start at 0)

EndTime

Numeric. Treatment end time in months (8-54 months)

BestResponse

Character. Best overall response per RECIST (CR, PR, SD, PD)

Surgery

Numeric. Time of surgery in months (1-7 months, NA if no surgery)

Biopsy

Numeric. Time of biopsy in months (0-4 months)

FirstResponse

Numeric. Time of first documented response (6-24 months, NA if no response)

Progression

Numeric. Time of disease progression (6-36 months, NA if no progression)

DeathLastFU

Numeric. Time of death or last follow-up (8-30 months, NA if alive)

TumorType

Character. Primary tumor type (Lung, Breast, Melanoma, Colon, Liver)

Stage

Character. Disease stage (IIA, IIB, IIIA, IIIB, IV)

Biomarker

Character. Relevant biomarker status (PD-L1+, HER2+, BRAF+, etc.)

Source

Generated for ClinicoPath package demonstration based on realistic oncology trial patterns

Examples

 
data(swimmer_unified_oncology)

# Comprehensive oncology swimmer plot
swimmerplot(
  data = swimmer_unified_oncology,
  patientID = "PatientID",
  startTime = "StartTime",
  endTime = "EndTime",
  responseVar = "BestResponse", 
  milestone1Name = "Surgery",
  milestone1Date = "Surgery",
  milestone2Name = "Biopsy",
  milestone2Date = "Biopsy",
  milestone3Name = "First Response",
  milestone3Date = "FirstResponse",
  milestone4Name = "Progression", 
  milestone4Date = "Progression",
  milestone5Name = "Death/Last FU",
  milestone5Date = "DeathLastFU",
  referenceLines = "protocol",
  showInterpretation = TRUE,
  personTimeAnalysis = TRUE,
  responseAnalysis = TRUE,
  plotTheme = "ggswim",
  sortOrder = "duration_desc"
)
#> Error: Argument 'milestone1Date' contains 'Surgery' which is not present in the dataset