show_km: Wrapper function of plot KM curve by survial and survminer...

View source: R/survial_analysis.R

show_kmR Documentation

Wrapper function of plot KM curve by survial and survminer packages

Description

Wrapper function of plot KM curve by survial and survminer packages

Usage

show_km(data, var, ...)

Arguments

data

A dataframe, containing survial status (as "OS" 0=alive, 1=dead) and survial time (as "OS.time")

var

A character vector or column name (not need been quoted), varible to separate samples

...

other arguments passed to survminer::ggsurvplot

Value

ggsurvplot object

Examples

show_km(sample_survival,"gender")
## or
show_km(sample_survival,gender)

wt12318/Easy_Bioinfo documentation built on June 17, 2022, 9:22 a.m.