Package survival includes an official plot function as of version 2.42-5. This will therefore be removed in the next major update.
plot_Surv(x, y, segments = TRUE, flip = FALSE, legendpos = "topright",
...)
Surv
vector.
Y-values.
Whether to draw horizontal segments.
Flip the plot to show time on y.
Position of legend, see legend
. Set to NA or
NULL to suppress legend.
Sent to plot
.