Skip to contents

A simple dataset for demonstrating basic swimmer plot functionality. Contains patient timelines with treatment responses and basic categorization.

Usage

data(swimmer_unified_basic)

Format

A data frame with 10 rows and 6 variables:

PatientID

Character. Unique patient identifiers (PT001-PT010)

StartTime

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

EndTime

Numeric. Treatment end time in months (5-15 months)

Response

Character. Best response (CR, PR, SD, PD)

Treatment

Character. Treatment type (Immunotherapy, Chemotherapy, Combination, Targeted)

Priority

Character. Patient priority level (High, Medium, Low)

Source

Generated for ClinicoPath package demonstration

Examples

data(swimmer_unified_basic)

# Basic swimmer plot
swimmerplot(
  data = swimmer_unified_basic,
  patientID = "PatientID",
  startTime = "StartTime", 
  endTime = "EndTime",
  responseVar = "Response"
)
#> 
#>  SWIMMER PLOT
#> 
#> character(0)
#> 
#>  Timeline Summary Statistics         
#>  ─────────────────────────────────── 
#>    Metric                Value       
#>  ─────────────────────────────────── 
#>    Number of Patients    10.000000   
#>    Total Observations    10.000000   
#>    Median Duration        9.500000   
#>    Mean Duration          9.700000   
#>    Total Person-Time     97.000000   
#>    Mean Follow-up         9.700000   
#>    CR Rate (%)           30.000000   
#>    PD Rate (%)           20.000000   
#>    PR Rate (%)           30.000000   
#>    SD Rate (%)           20.000000   
#>  ─────────────────────────────────── 
#> 
#> 
#>  <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 10 patients with 10 timeline observations. Median
#>  follow-up was 9.5 months (range: 5.0 to 15.0 months).
#> 
#>  <div style='margin: 10px 0;'><h5 style='color: #2e7d32;'>Person-Time
#>  Analysis:
#> 
#>  Total person-time: 97.0 months. Average follow-up per patient: 9.7
#>  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   
#>  ────────────────────────────────────────────────────── 
#>  ────────────────────────────────────────────────────── 
#>