View source: R/plot_kaplan_meier.R
PlotTwoSampleKM | R Documentation |
Plot Two Sample Survival
PlotTwoSampleKM(
data,
arm_name = "arm",
cis = TRUE,
color_labs = c("Ctrl", "Trt"),
color_ctrl = "#EFC000FF",
color_trt = "#6385B8",
contrast = NULL,
plot_surv = TRUE,
status_name = "status",
tau = NULL,
time_name = "time",
title = NULL,
x_breaks = NULL,
x_labs = NULL,
x_name = "Time",
x_max = NULL,
y_name = "Survival",
y_lim = c(0, 1)
)
data |
Data.frame containing time, status, and arm. |
arm_name |
Name of arm column. |
cis |
Include confidence intervals? |
color_labs |
Color labels. |
color_ctrl |
Color for control arm. |
color_trt |
Color for treatment arm. |
contrast |
Fitted parametric contrast from the Temporal package. |
plot_surv |
Logical, TRUE for survival curves, FALSE for cumulative incidence. |
status_name |
Name of status column. |
tau |
Truncation time. |
time_name |
Name of time column. |
title |
Plot title. |
x_breaks |
X-axis breaks. |
x_labs |
X-axis labels. |
x_name |
X-axis name. |
x_max |
X-axis upper limit. |
y_name |
Y-axis name. |
y_lim |
Y-axis limits. |
ggplot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.