compare_tumors | R Documentation |
compare multiple tumor times with respect to survival
compare_tumors(types = c("BRCA", "GBM"), ...)
types |
character() TCGA project codes |
... |
passed to 'build_surv_for_mut' |
a list of lists of two elements: survlist (Surv objects) and mutlist (mutation matrices)
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.