plot_cloglog {easysurv} | R Documentation |
Cumulative Log Log Plot
Description
Generates a Cumulative Log Log survival curve plot using
ggsurvfit::ggsurvfit()
with customizable options.
Usage
plot_cloglog(
fit,
median_line = FALSE,
legend_position = "top",
plot_theme = theme_easysurv()
)
Arguments
fit |
A survival::survfit object representing the survival data. |
median_line |
Logical value indicating whether to include a line
representing the median survival time. Default is |
legend_position |
Position of the legend in the plot. Default is "top". |
plot_theme |
ggplot2 theme for the plot. Default is
|
Value
A ggplot object representing the cumulative log log plot.
Examples
library(ggsurvfit)
fit <- survfit2(Surv(time, status) ~ surg, data = df_colon)
plot_cloglog(fit)
[Package easysurv version 2.0.1 Index]