I want to plot data from survival analysis in R using the survial and survminer package. My survival probability ranges from 0% to ca 5%. I want a graph that has the ylim set to 0 to 20 but should have a 100% on the axis, too. Looking something like that:
I am doing this af the time:
tlr_plot <- ggsurvplot(survFit_TLR, fun = "event", conf.int = FALSE, risk.table = 'nrisk_cumevents', title="TLR", legend = "none", tables.theme = theme_cleantable(),surv.scale="percent")
tlr_plot$plot <- tlr_plot$plot +
scale_x_discrete(breaks = c(0,180,365,540,730), labels = c(0,180,365,540,730), limits=0:741)
tlr_plot