# 改变标签: title & labelsggsurvplot(fit, data = lung, surv.median.line = "hv", legend = "bottom", #将图例移动到下方 legend.title = "sex", #改变图例名称 legend.labs = c("Male", "Female"), linetype = "strata")# 改变线条类型
# 添加p值和置信区间ggsurvplot(fit, data = lung, surv.median.line = "hv",legend.title = "sex", legend.labs = c("Male", "Female"), pval = TRUE,conf.int = TRUE)
# p值其他添加方法# 指定p值ggsurvplot(fit, data = lung, pval = 0.04)
# 指定字符ggsurvplot(fit, data = lung, pval = "The hot p-value is: 0.031")
# 添加风险表ggsurvplot(fit, data = lung, surv.median.line = "hv",legend.title = "sex", legend.labs = c("Male", "Female"), pval = TRUE,conf.int = TRUE,risk.table = TRUE, tables.height = 0.2,tables.theme =theme_cleantable())