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,
conf_type = "plain",
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 = tern::control_coxph_annot(x = 0.27, y = 0.35, w = 0.3),
legend_pos = NULL,
rel_height_plot = 0.8,
ci_ribbon = FALSE,
title = "KM Plot"
)
dataname |
( |
arm_var |
( |
ref_arm |
( |
comp_arm |
( |
compare_arm |
( |
combine_comp_arms |
( |
aval_var |
( |
cnsr_var |
( |
xticks |
( |
strata_var |
( |
time_points |
( |
facet_var |
( |
font_size |
( |
conf_level |
( |
conf_type |
( |
ties |
( |
xlab |
( |
time_unit_var |
( |
yval |
( |
ylim |
( |
pval_method |
( |
annot_surv_med |
( |
annot_coxph |
( |
control_annot_surv_med |
( |
control_annot_coxph |
( |
legend_pos |
( |
rel_height_plot |
( |
ci_ribbon |
( |
title |
( |
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.