Comprehensive Swimmer Plot Example Data
Source:R/data_swimmer_unified_docs.R
swimmer_unified_comprehensive.Rd
A comprehensive dataset demonstrating advanced swimmer plot features including multiple milestones, patient demographics, and clinical characteristics. Designed to showcase the full capabilities of the swimmer plot function.
Usage
data(swimmer_unified_comprehensive)
Format
A data frame with 20 rows and 11 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 (6-51 months)
- BestResponse
Character. Best overall response (CR, PR, SD, PD)
- Surgery
Numeric. Time of surgery in months (1-9 months, NA if no surgery)
- FirstResponse
Numeric. Time of first response in months (3-18 months, NA if no response)
- Progression
Numeric. Time of disease progression in months (4-36 months, NA if no progression)
- DeathLastFU
Numeric. Time of death or last follow-up (6-18 months, NA if alive)
- TreatmentType
Character. Type of treatment received
- AgeGroup
Character. Patient age group (Young, Middle, Elderly)
- ECOG
Numeric. ECOG performance status (0, 1, 2)
See also
Other swimmer plot datasets:
swimmer_unified_basic
,
swimmer_unified_datetime
,
swimmer_unified_events
,
swimmer_unified_oncology
Examples
data(swimmer_unified_comprehensive)
# Comprehensive swimmer plot with milestones
swimmerplot(
data = swimmer_unified_comprehensive,
patientID = "PatientID",
startTime = "StartTime",
endTime = "EndTime",
responseVar = "BestResponse",
milestone1Name = "Surgery",
milestone1Date = "Surgery",
milestone2Name = "First Response",
milestone2Date = "FirstResponse",
milestone3Name = "Progression",
milestone3Date = "Progression",
milestone4Name = "Death/Last FU",
milestone4Date = "DeathLastFU",
personTimeAnalysis = TRUE,
showInterpretation = TRUE
)
#>
#> SWIMMER PLOT
#>
#> character(0)
#>
#> Timeline Summary Statistics
#> ───────────────────────────────────
#> Metric Value
#> ───────────────────────────────────
#> Number of Patients 20.00000
#> Total Observations 20.00000
#> Median Duration 22.50000
#> Mean Duration 24.90000
#> Total Person-Time 498.00000
#> Mean Follow-up 24.90000
#> CR Rate (%) 30.00000
#> PD Rate (%) 25.00000
#> PR Rate (%) 25.00000
#> SD Rate (%) 20.00000
#> ───────────────────────────────────
#>
#>
#> <div style='background-color: #e8f5e8; padding: 15px; border-radius:
#> 5px; margin: 10px 0;'>
#>
#> Clinical Interpretation
#>
#> <div style='margin: 10px 0;'><h5 style='color: #2e7d32;'>Timeline
#> Analysis:
#>
#> Study included 20 patients with 20 timeline observations. Median
#> follow-up was 22.5 months (range: 6.0 to 51.0 months).
#>
#> <div style='margin: 10px 0;'><h5 style='color: #2e7d32;'>Person-Time
#> Analysis:
#>
#> Total person-time: 498.0 months. Average follow-up per patient: 24.9
#> months.
#>
#> <div style='margin: 10px 0;'><h5 style='color: #2e7d32;'>Response
#> Pattern Analysis:
#>
#> Most common response was CR (30.0% of observations). Response
#> distribution shows clinical patterns suitable for efficacy analysis.
#>
#> Person-Time Analysis
#> ──────────────────────────────────────────────────────────────────────────
#> Response Type Patients Total Time Mean Time Incidence Rate
#> ──────────────────────────────────────────────────────────────────────────
#> ──────────────────────────────────────────────────────────────────────────
#>
#>
#> Milestone Event Summary
#> ────────────────────────────────────────────────────
#> Milestone Events Median Time Time Range
#> ────────────────────────────────────────────────────
#> ────────────────────────────────────────────────────
#>
#>
#> Advanced Clinical Metrics
#> ──────────────────────────────────────────────────────
#> Metric Value Unit Clinical Interpretation
#> ──────────────────────────────────────────────────────
#> ──────────────────────────────────────────────────────
#>