Add median survival text to plot
add_median_text(
p,
type,
multiple_lines,
median_txt,
median.pos = NULL,
times,
ylim,
median.size = 3,
plot.event = 1,
eventlabs = NULL
)
Arguments
- p
ggplot object
- type
Plot type
- multiple_lines
Whether multiple strata
- median_txt
Median text
- median.pos
Position for median text
- times
Time breaks
- ylim
Y-axis limits
- median.size
Text size
- plot.event
Events being plotted
- eventlabs
Event labels