surv_group | R Documentation |
Drawing KM-plot to a Categorical variable with two or more groups
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
)
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 |
Dongqiang Zeng
data("tcga_stad_pdata", package = "IOBR")
surv_group(input_pdata = tcga_stad_pdata, target_group = "TMEscore_plus_binary", time = "time", status = "OS_status")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.