PlotAUCIC | R Documentation |
Plot area under the cumulative incidence curve for a single treatment arm.
PlotAUCIC(
data,
arm_label = "Ctrl",
arm_name = "arm",
color = "#C65842",
legend_pos = c(0.2, 0.8),
status_name = "status",
time_name = "time",
title = NULL,
tau = NULL,
which_arm = 0,
x_breaks = NULL,
x_labs = NULL,
x_name = "Time",
x_max = NULL,
y_name = "Cumulative Incidence",
y_lim = c(0, 1)
)
data |
Data including time, status, arm. |
arm_label |
Label for the arm. |
arm_name |
Name of arm column. |
color |
Color. |
legend_pos |
Legend position. |
status_name |
Name of status column. |
time_name |
Name of time column. |
title |
Plot title. |
tau |
Truncation time for shading. |
which_arm |
Arm to plot. |
x_breaks |
X-axis breaks. |
x_labs |
X-axis labels. |
x_name |
X-axis name. |
x_max |
X-axis upper limit; may differ from tau. |
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.