PlotAUMCFs | R Documentation |
Plot area under the mean cumulative function for a single treatment arm.
PlotAUMCFs(
data,
which_arm,
arm_label = "Placebo",
arm_name = "arm",
color = "#C65842",
idx_name = "idx",
status_name = "status",
strata_name = NULL,
time_name = "time",
title = NULL,
tau = NULL,
weights = NULL,
x_breaks = NULL,
x_lim = NULL,
x_name = "Time",
y_breaks = NULL,
y_lim = NULL,
y_name = "Mean Cumulative Count"
)
data |
Data.frame. |
which_arm |
Arm to plot. |
arm_label |
Label for the arm. |
arm_name |
Name of arm column in data. |
color |
Color. |
idx_name |
Name of index (subject identifier) column in data. |
status_name |
Name of status column in data. |
strata_name |
Name of stratum column in data. |
time_name |
Name of column column in data. |
title |
Plot title. |
tau |
Truncation time for shading. |
weights |
Optional column of weights, controlling the size of the jump in the cumulative count curve at times with status == 1. |
x_breaks |
X-axis breaks. |
x_lim |
X-axis limits. |
x_name |
X-axis label. |
y_breaks |
Y-axis breaks. |
y_lim |
Y-axis limits. |
y_name |
Y-axis label. |
ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.