plotSurvivalCurves {psichomics} | 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? TRUE by default |
interval |
Boolean: show interval ranges? FALSE by default |
pvalue |
Numeric: p-value of the survival curves |
title |
Character: plot title |
scale |
Character: time scale; default is "days" |
auto |
Boolean: return the plot automatically prepared (TRUE) or only the bare minimum (FALSE)? TRUE by default |
Plot of survival curves
require("survival") fit <- survfit(Surv(time, status) ~ x, data = aml) plotSurvivalCurves(fit)