服务热线
178 0020 3020
install.packages("survival") install.packages("survminer") library(survival) lung library(survminer) library(ggplot2) library(ggpubr) library(magrittr) f<-survfit(Surv(time,status)~sex,data=lung) f ggsurvplot(f,title="R2-01",conf.int=TRUE,pval=TRUE,pval.method=TRUE,surv.median.line="hv",break.time.by=300,risk.table = "abs_pct",risk.color="sex",ncensor.plot=TRUE,legend.title="Sex",legend.labs=c("Male","Female"))
附件