服务热线
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, palette = c("#E7B800", "#2E9FDF"), pval=TRUE, surv.median.line="hv", legend.title="sex", legend.labs=c("male","female"), risk.table=TRUE, ncensor.plot=TRUE)+ ggtitle("R2-02")
附件