plotSurvivalCurves: Plot survival curves

Description Usage Arguments Value See Also Examples

View source: R/analysis.R

Description

Plot survival curves

Usage

1
2
3
4
5
6
7
8
9
plotSurvivalCurves(
  surv,
  mark = TRUE,
  interval = FALSE,
  pvalue = NULL,
  title = "Survival analysis",
  scale = NULL,
  auto = TRUE
)

Arguments

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 days)

auto

Boolean: return the plot automatically prepared (TRUE) or only the bare minimum (FALSE)?

Value

Plot of survival curves

See Also

Other functions to analyse survival: assignValuePerSubject(), getAttributesTime(), labelBasedOnCutoff(), optimalSurvivalCutoff(), plotSurvivalPvaluesByCutoff(), processSurvTerms(), survdiffTerms(), survfit.survTerms(), testSurvival()

Examples

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

psichomics documentation built on Nov. 8, 2020, 5:44 p.m.