View source: R/alluvialsurvival.h.R
alluvialSurvival | R Documentation |
Treatment Pathway Alluvial Plot
alluvialSurvival(
data,
timeVar,
stageVar,
treatmentVar,
patientId,
survivalVar,
showRightAxis = FALSE,
colorScheme = "clinical",
showSurvival = FALSE
)
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 |
. |
A results object containing:
results$todo | a html | ||||
results$mydataview | a preformatted | ||||
results$plot | an image | ||||
results$summaryTable | a table | ||||
results$survivalStats | a table | ||||
Tables can be converted to data frames with asDF
or as.data.frame
. For example:
results$summaryTable$asDF
as.data.frame(results$summaryTable)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.