plot.survfit.lixc: Survival curve visualization with additional information.

Description Usage Arguments See Also Examples

View source: R/plot.survfit.lixc.R

Description

Survival curve visualization with additional information.

Usage

1
plot.survfit.lixc(survdiff.formula, data, legend.labels=c('Wild-type','Mutant'), ci.lab.xycoord=c(70,0.2), legend.xycoord=c(40,0.4), col=c("cyan4", "brown"),no.ci.lab=FALSE, pngfig=NULL,...)

Arguments

survdiff.formula

An appropriate formula passed to survdiff, always put the variable-of-interest(VOI) as the last term.

data

A data frame to be operated, column names must match those in the formula.

ci.lab.xycoord

The x and y coordinates for confidence interval.

legend.xycoord

The x and y coordinates for legend.

col

Color for KM survival curves.

no.ci.lab

Do not add confident interval in the plot.

pngfig

A figure suffixed with .png, in which figure will be saved.

...

Parameters passed to plot.survfit.

See Also

survdiff,survfit,coxph

Examples

1
2
3
4
5
library(survival)
data("crcdat", package='lxctk')
survdiff.formula <- as.formula("Surv(Survival.month, status) ~ hypermutated>0")
#survdiff.formula <- Surv(Survival.month, status) ~ hypermutated>0
plot.survfit.lixc(survdiff.formula, data=crcdat, main="Hypermutated")

lixiangchun/lxctk documentation built on May 21, 2019, 6:44 a.m.