PlotCICs: Plot Two-Sample Cumulative Incidence Curves

View source: R/Plotting.R

PlotCICsR Documentation

Plot Two-Sample Cumulative Incidence Curves

Description

Plot the cumulative incidence curves comparing two treatment arms.

Usage

PlotCICs(
  data,
  arm_name = "arm",
  color_labs = c("Ctrl", "Trt"),
  ctrl_color = "#C65842",
  legend_pos = "top",
  status_name = "status",
  tau = NULL,
  time_name = "time",
  title = NULL,
  trt_color = "#6385B8",
  x_breaks = NULL,
  x_labs = NULL,
  x_name = "Time",
  x_max = NULL,
  y_name = "Cumulative Incidence",
  y_lim = c(0, 1)
)

Arguments

data

Data.frame.

arm_name

Name of arm column.

color_labs

Color labels.

ctrl_color

Color for control arm.

legend_pos

Legend position.

status_name

Name of status column.

tau

Truncation time.

time_name

Name of time column.

title

Plot title.

trt_color

Color for treatment arm.

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.

Value

ggplot.


zrmacc/CICs documentation built on Nov. 6, 2024, 1:26 a.m.