Description Usage Arguments Value See Also Examples
Plot survival curves
1 2 3 4 5 6 7 8 9 |
surv |
Survival object |
mark |
Boolean: mark times? |
interval |
Boolean: show interval ranges? |
pvalue |
Numeric: p-value of the survival curves |
title |
Character: plot title |
scale |
Character: time scale (default is |
auto |
Boolean: return the plot automatically prepared ( |
Plot of survival curves
Other functions to analyse survival:
assignValuePerSubject()
,
getAttributesTime()
,
labelBasedOnCutoff()
,
optimalSurvivalCutoff()
,
plotSurvivalPvaluesByCutoff()
,
processSurvTerms()
,
survdiffTerms()
,
survfit.survTerms()
,
testSurvival()
1 2 3 | require("survival")
fit <- survfit(Surv(time, status) ~ x, data = aml)
plotSurvivalCurves(fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.