Dear all,
I have been trying for a while now, but I cant figure this out.
I have created a ggsurvplot with
sfit <- survfit(Surv(survalltime, event_crc)~ajcc, data=pheno)
I then wanted to change the x-axis from days to years, which also worked with
ggsurvplot(sfit,xscale = "d_y")
However, I cant seem to figure out how I can limit it now to 5 years instead of currently 20 years in the x-axis.
I tried this:
ggsurvplot(sfit,xscale = "d_y",xlim=c(0,5))
But it doesnt work. Has anyone an idea?
Thanks so much!
Bine