i'm using the survminer package to create a Kaplan-Meier-Curve in R, which is working pretty well:
plotUICC=survfit(Surv(as.numeric(myData$eventtime),event=myData$eventtype)~myData$UICC, data = myData)
ggsurvplot(plotUICC,data=myData, risk.table = FALSE,pval = TRUE,conf.int = FALSE,legend.labs = c("UICC I", "UICC II"),legend = c(0.25, 0.26),legend.title = "",xlab = "Time in Months"))
Kaplan Meier Curve created with the Cod above
I would like to change the "+" as censored event and use an simple "|" instead. Unfortunately neither help(ggsurvplot) nor google could help me.
These are the loaded packeges:
other attached packages:
[1] ggthemes_3.4.0 survminer_0.3.1 ggpubr_0.1.2 ggplot2_2.2.1 survival_2.40-1
[6] readxl_0.1.1 gridExtra_2.2.1