PlotTwoSampleCH: Plot Two Sample Cumulative Hazard

View source: R/plot_cum_haz.R

PlotTwoSampleCHR Documentation

Plot Two Sample Cumulative Hazard

Description

Plot Two Sample Cumulative Hazard

Usage

PlotTwoSampleCH(
  data,
  arm_name = "arm",
  color_labs = c("Ctrl", "Trt"),
  color_ctrl = "#EFC000FF",
  color_trt = "#6385B8",
  plot_haz_haz = TRUE,
  status_name = "status",
  tau = NULL,
  time_name = "time",
  title = NULL,
  x_breaks = NULL,
  x_labs = NULL,
  x_lim = NULL,
  x_name = NULL,
  x_max = NULL,
  y_name = NULL,
  y_lim = NULL
)

Arguments

data

Data.frame containing time, status, and arm.

arm_name

Name of arm column.

color_labs

Color labels.

color_ctrl

Color for control arm.

color_trt

Color for treatment arm.

plot_haz_haz

Logical, plot hazard vs. hazard? If FALSE, plots hazards vs. time.

status_name

Name of status column.

tau

Truncation time.

time_name

Name of time column.

title

Plot title.

x_breaks

X-axis breaks.

x_labs

X-axis labels.

x_lim

X-axis limits.

x_name

X-axis name.

x_max

X-axis upper limit.

y_name

Y-axis name.

y_lim

Y-axis limits.

Value

ggplot.


zrmacc/SurvUtils documentation built on Sept. 28, 2024, 8:43 a.m.