PlotMCFs | R Documentation |
Plot the mean cumulative functions comparing two treatment arms.
PlotMCFs(
data,
arm_name = "arm",
color_labs = c("Ctrl", "Trt"),
ctrl_color = "#C65842",
idx_name = "idx",
status_name = "status",
strata_name = NULL,
tau = NULL,
time_name = "time",
title = NULL,
trt_color = "#6385B8",
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. |
arm_name |
Name of arm column in data. |
color_labs |
Color labels. |
ctrl_color |
Color for control arm. |
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. |
tau |
Truncation time. |
time_name |
Name of column column in data. |
title |
Plot title. |
trt_color |
Color for treatment arm. |
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.