如何在Survminer的风险表中更改默认标题“风险编号”

时间:2019-01-06 23:56:47

标签: r survival-analysis

我正在使用survminer R软件包运行生存概率(Kaplan-Meier)曲线。我在风险表上进行设置,但是,我想更改默认标题“风险数字”。我该怎么办?

我正在使用以下代码:

 survAL <- survfit(Surv(time, death) ~ AL.Factor, data = wave1)

 ggsurvplot(survAL, legend.title = "Allostatic Load", legend.labs = c("Low", 
"Mid", "High"), ylim = c(0.90, 1.0), conf.int = TRUE, pval = TRUE, 
 xlim = c(0,10), xlab = "Time in years", ylab = "Survival Probability", 
 break.time.by = 2, ggtheme = theme_light(), risk.table = TRUE, 
 risk.table.col = "strata",  data = wave1)

1 个答案:

答案 0 :(得分:0)

您可以使用risk.table.title的{​​{1}}选项:

ggsurvplot

enter image description here