add_censor_mark {ggsurvfit}R Documentation

Add Censor Marking

Description

Add a marking on the figure to represent the time an observations was censored.

Usage

add_censor_mark(...)

Arguments

...

arguments passed to passed to ggplot2::geom_point(...) with defaults shape = 3 and size = 2

Value

a ggplot2 figure

See Also

Visit the gallery for examples modifying the default figures

Examples

survfit2(Surv(time, status) ~ 1, data = df_lung) %>%
  ggsurvfit() +
  add_confidence_interval() +
  add_censor_mark() +
  scale_ggsurvfit()

[Package ggsurvfit version 1.1.0 Index]