Skip to contents

Treatment Pathway Alluvial Plot

Usage

alluvialSurvival(
  data,
  timeVar,
  stageVar,
  treatmentVar,
  patientId,
  survivalVar,
  showRightAxis = FALSE,
  colorScheme = "clinical",
  showSurvival = FALSE
)

Arguments

data

.

timeVar

The name of the time variable in the dataset

stageVar

The name of the disease stage variable

treatmentVar

Treatment received at each time point

patientId

Unique patient identifier for tracking

survivalVar

Survival status at each time point

showRightAxis

.

colorScheme

.

showSurvival

.

Value

A results object containing:

results$todoa html
results$mydataviewa preformatted
results$plotan image
results$summaryTablea table
results$survivalStatsa table

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$summaryTable$asDF

as.data.frame(results$summaryTable)