plot_km | R Documentation |
Implements overall survival analysis or progression-free survival analysis, depending upon the datatypes supplied to surv_designation, and plot the resulting Kaplan-Meier curve.
plot_km(omicsData)
omicsData |
A pmartR data object of any class, which has a 'group_df' attribute that is usually created by the 'group_designation()' function |
a Kaplan-Meier curve
## Not run:
library(MSomicsSTAT)
library(OvarianPepdataBP)
attr(tcga_ovarian_pepdata_bp, "survDF") <- list(t_death = "survival_time",
ind_death = "vital_status")
plot_km(omicsData = tcga_ovarian_pepdata_bp)
# Add covariates to "survDF" attribute
attr(tcga_ovarian_pepdata_bp, "survDF") <- list(
t_death = "survival_time",
ind_death = "vital_status",
covariates = "age_at_initial_pathologic_diagnosis"
)
plot_km(omicsData = tcga_ovarian_pepdata_bp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.