Plot the Survival Probability Based on the Kaplan-Meier Model
Plot the Survival Probability Based on the Kaplan-Meier Model
This function relies on the implementation of the Kaplan-Meier model from the package {survival}. It returns a plot of the Survival Probability or the Cumulative Hazard (if cumulative = TRUE). The return is a ggplot2 element of the curves with 95% C.I. It is possible to manipulate the colors, labels, legend, and most of the graphic elements.