plotSurvivalCurves: Plot survival curves

Description Usage Arguments Value Examples

View source: R/analysis.R

Description

Plot survival curves

Usage

1
2
plotSurvivalCurves(surv, mark = TRUE, interval = FALSE, pvalue = NULL,
  title = "Survival analysis", scale = NULL, auto = TRUE)

Arguments

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

Value

Plot of survival curves

Examples

1
2
3
require("survival")
fit <- survfit(Surv(time, status) ~ x, data = aml)
plotSurvivalCurves(fit)

nuno-agostinho/psichomics documentation built on Nov. 1, 2017, 3:18 p.m.