add_median_text: Add median survival text to plot

View source: R/ggkmcif3.R

add_median_textR Documentation

Add median survival text to plot

Description

Add median survival text to plot

Usage

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


reportRmd documentation built on March 20, 2026, 5:06 p.m.