服务热线
178 0020 3020
library(survminer) library(survival) lung a=Surv(lung$time,lung$status) b=survfit(a~lung$sex) ggsurvplot(b,lung,pval=T,conf.int=T,risk.table=T,risk.table.col="sex",ncensor.plot=T,legend.title="SEX",legend.labs=c("Male","Female"),title="R2-21")
附件