服务热线
178 0020 3020
library(survival)
library(survminer)
fit_lung<-surv_fit(Surv(time,status)~sex,data = lung)
ggsurvplot(fit_lung,legend.title="SEX",legend.labs=c("Male","Female"),conf.int = T,palette=c("blue","red"),linetype = c(1,2),censor.shape=3,pval = T,surv.median.line = "hv",risk.table = "percentage",risk.table.col="strata",ncensor.plot=T)+ggtitle("R2-12")
附件