PlotOneSampleMCF: Plot One Sample Mean Cumulative Function

View source: R/PlotMCF1.R

PlotOneSampleMCFR Documentation

Plot One Sample Mean Cumulative Function

Description

Plot the mean cumulative function for a single treatment arm.

Usage

PlotOneSampleMCF(
  data,
  color = "#C65842",
  color_lab = "Arm",
  idx_name = "idx",
  status_name = "status",
  tau = NULL,
  time_name = "time",
  title = NULL,
  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.

color

Color.

color_lab

Color label.

idx_name

Name of index (subject identifier) column in data.

status_name

Name of status column in data.

tau

Truncation time.

time_name

Name of column column in data.

title

Plot title.

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.