ggsurvpWrap: Survival plot with ggsurvplot A warpper to plot survival...

Description Usage Arguments Value

View source: R/ggsurvpWrap.R

Description

Survival plot with ggsurvplot A warpper to plot survival plots to further customize the plot,

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
ggsurvpWrap(
  survdf,
  fac,
  surv.time = "OS_Month",
  surv.status = "OS_Status",
  cont.to.dis = NA,
  title = fac,
  col = comp_hm_colist_full$disc,
  risk.table = F,
  xlim = c(0, 120),
  break.time.by = 60,
  textsize = 10,
  pval.method = T,
  ...
)

Arguments

survdf

dataframe with surv.time (character or numeric) and surv.status (numeric of 0,1; or factor with Alive as base level)

fac

character of the column name in the survdf to stratify the patients

surv.time, surv.status

column name of the survival time and status in the dataframe

cont.to.dis

if fac is numeric, how to discretize it. Can be a funciton (Default median) or cutoff points (n-1 points)

col

vector of colors

xlim, break.time.by, pval.method, risk.table, ...

arguments to ggsurvplot

textsize

pass to ggplot global text size

Value

A object of class ggsurvplot


brightchan/cjbmisc documentation built on Nov. 5, 2021, 4:12 p.m.