michaelway / ggkm

Kaplan-Meier plots with at risk table below
MIT License
7 stars 5 forks source link

Survival probabilities #1

Open zoran3 opened 6 years ago

zoran3 commented 6 years ago

First of all, the ggkm is awesome out of the box.
I am seeing one small issue. If I add the title it is all the way with no margin to the top of plot.
Also the pval wouldn't show up on plot...which was weird

another thing it would be cool to display another variation of table below. Right now there is an option for table=T|F which displays the numbers at risk based on strata. What if it displayed the probabilities of survival at displayed x time points. a strata group 1 at 12 months would have probability of survival .9%, group 2 .85%, at 24 months group 1 0.8% group 2 .7% etc.