plotSurvivalCurves | R Documentation |
Plot survival curves
plotSurvivalCurves(
surv,
mark = TRUE,
interval = FALSE,
pvalue = NULL,
title = "Survival analysis",
scale = NULL,
auto = TRUE
)
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()
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.