surv_group: Drawing KM-plot to a Categorical variable with two or more...

View source: R/surv_group.R

surv_groupR Documentation

Drawing KM-plot to a Categorical variable with two or more groups

Description

Drawing KM-plot to a Categorical variable with two or more groups

Usage

surv_group(
  input_pdata,
  target_group,
  ID = "ID",
  levels = c("High", "Low"),
  reference_group = "High",
  project = NULL,
  time = "time",
  status = "status",
  time_type = "month",
  break_month = "auto",
  cols = NULL,
  palette = "jama",
  mini_sig = "score",
  save_path = paste0("KMplot"),
  fig.type = "pdf",
  index = 1,
  width = 6,
  height = 6.5,
  font.size.table = 3
)

Arguments

input_pdata

DATA

target_group

target of binary variable

ID

identifier of data

levels

level of variable

reference_group

default is

project

name of main title

time

column name of follow up time

status

status

time_type

month or day

break_month

break of time

cols

if null, palette should be set

palette

default is 'jama', if cols is null

mini_sig

prefix of variable

save_path

default is KMplot

fig.type

default is pdf, other option is png

index

folder name

width

default is 6

height

default is 6.5

font.size.table

default is 62

Author(s)

Dongqiang Zeng

Examples

data("tcga_stad_pdata", package = "IOBR")
surv_group(input_pdata = tcga_stad_pdata, target_group = "TMEscore_plus_binary", time = "time", status = "OS_status")


IOBR/IOBR documentation built on May 5, 2024, 2:34 p.m.