Plots Kaplan-Meier estimates of survival curves for survival data.
kmTCGA(x, times = "times", status = "patient.vital_status", explanatory.names = "1", main = "Survival Curves", risk.table = TRUE, risk.table.y.text = FALSE, conf.int = TRUE, return.survfit = FALSE, pval = FALSE, ...)
data.frame
containing survival information. See survivalTCGA.If you have any problems, issues or think that something is missing or is not clear please post an issue on https://github.com/RTCGA/RTCGA/issues.
RTCGA website http://rtcga.github.io/RTCGA/articles/Visualizations.html.
Other RTCGA: RTCGA-package
,
boxplotTCGA
, checkTCGA
,
convertTCGA
, createTCGA
,
datasetsTCGA
, downloadTCGA
,
expressionsTCGA
, heatmapTCGA
,
infoTCGA
, installTCGA
,
mutationsTCGA
, pcaTCGA
,
readTCGA
, survivalTCGA
,
theme_RTCGA
## Extracting Survival Data library(RTCGA.clinical) survivalTCGA(BRCA.clinical, OV.clinical, extract.cols = "admin.disease_code") -> BRCAOV.survInfo ## Kaplan-Meier Survival Curves kmTCGA(BRCAOV.survInfo, explanatory.names = "admin.disease_code", pval = TRUE)kmTCGA(BRCAOV.survInfo, explanatory.names = "admin.disease_code", main = "", xlim = c(0,4000))# first munge data, then extract survival info library(dplyr) BRCA.clinical %>% filter(patient.drugs.drug.therapy_types.therapy_type %in% c("chemotherapy", "hormone therapy")) %>% rename(therapy = patient.drugs.drug.therapy_types.therapy_type) %>% survivalTCGA(extract.cols = c("therapy")) -> BRCA.survInfo.chemo # first extract survival info, then munge data survivalTCGA(BRCA.clinical, extract.cols = c("patient.drugs.drug.therapy_types.therapy_type")) %>% filter(patient.drugs.drug.therapy_types.therapy_type %in% c("chemotherapy", "hormone therapy")) %>% rename(therapy = patient.drugs.drug.therapy_types.therapy_type) -> BRCA.survInfo.chemo kmTCGA(BRCA.survInfo.chemo, explanatory.names = "therapy", xlim = c(0, 3000), conf.int = FALSE)