PlotMCFs: Plot Two Sample Mean Cumulative Function

View source: R/PlotMCF2.R

PlotMCFsR Documentation

Plot Two Sample Mean Cumulative Function

Description

Plot the mean cumulative functions comparing two treatment arms.

Usage

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"
)

Arguments

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.

Value

ggplot object.


zrmacc/MCC documentation built on July 16, 2025, 4:04 p.m.