template_g_km | R Documentation |
Creates a valid expression to generate a Kaplan-Meier plot.
template_g_km(
dataname = "ANL",
arm_var = "ARM",
ref_arm = NULL,
comp_arm = NULL,
compare_arm = FALSE,
combine_comp_arms = FALSE,
aval_var = "AVAL",
cnsr_var = "CNSR",
xticks = NULL,
strata_var = NULL,
time_points = NULL,
facet_var = "SEX",
font_size = 11,
conf_level = 0.95,
ties = "efron",
xlab = "Survival time",
time_unit_var = "AVALU",
yval = "Survival",
ylim = NULL,
pval_method = "log-rank",
annot_surv_med = TRUE,
annot_coxph = TRUE,
control_annot_surv_med = control_surv_med_annot(),
control_annot_coxph = control_coxph_annot(x = 0.27, y = 0.35, w = 0.3),
legend_pos = NULL,
position_coxph = lifecycle::deprecated(),
width_annots = lifecycle::deprecated(),
rel_height_plot = 0.8,
ci_ribbon = FALSE,
title = "KM Plot"
)
a list
of expressions to generate a table or plot object.
tm_g_km()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.