服务热线
178 0020 3020
install.packages("survminer") install.packages("survival") library(survival) library(ggplot2) library(survminer) library(magrittr) my_df <- survfit(Surv(time,status)~sex,data=lung) ggsurvplot(my_df,conf.int=TRUE,pval=TRUE,surv.median.line="hv",legend.title="sex",legend.labs=c("male","female"),risk.table=TRUE,ncensor.plot=TRUE)+ggtitle("R2-31")
附件