compare_tumors: compare multiple tumor times with respect to survival

View source: R/build_surv.R

compare_tumorsR Documentation

compare multiple tumor times with respect to survival

Description

compare multiple tumor times with respect to survival

Usage

compare_tumors(types = c("BRCA", "GBM"), ...)

Arguments

types

character() TCGA project codes

...

passed to 'build_surv_for_mut'

Value

a list of lists of two elements: survlist (Surv objects) and mutlist (mutation matrices)

Examples

cmp = compare_tumors()
plot(survival::survfit(cmp$survlist[[1]]~1), conf.int=FALSE, xlab="years", ylab="Survival prob.", main="TCGA survival", lwd=2)
lines(survival::survfit(cmp$survlist[[2]]~1), lwd=2, lty=2, conf.int=FALSE)
legend(15, .98, lty=c(1,2), lwd=2, legend=c("BRCA", "GBM"), bty="n")

vjcitn/YESCDS documentation built on Oct. 30, 2024, 1:18 p.m.