plotSurv: plot the survival Kaplan-Meier curve

View source: R/functions.R

plotSurvR Documentation

plot the survival Kaplan-Meier curve

Description

plot the survival Kaplan-Meier curve

Usage

plotSurv(os, name = "gene")

Arguments

os

overall survival tibble with High/Low groups formed

name

name of the gene/geneSet for the title, default is "gene"

Value

plotting object

Examples

os = dplyr::tibble(sample = letters[1:10], OS = 10:19, Vital.Status = c(rep("Alive",8),rep("Dead",2)))
out = list("cutoff" = 0.44, "scores" = rnorm(10))
os["group"] = cut(os,out)
plotSurv(os, "gene1")

hmumme/survivalHelp documentation built on June 6, 2022, 9:15 p.m.