PlotTwoSampleNARs: Plot Two Sample Numbers at Risk

View source: R/plot_nars.R

PlotTwoSampleNARsR Documentation

Plot Two Sample Numbers at Risk

Description

Plot Two Sample Numbers at Risk

Usage

PlotTwoSampleNARs(
  data,
  arm_name = "arm",
  specified_nars = NULL,
  status_name = "status",
  time_name = "time",
  x_breaks = NULL,
  x_labs = NULL,
  x_max = NULL,
  x_name = NULL,
  y_labs = c("Ctrl", "Trt")
)

Arguments

data

Data.frame.

arm_name

Name of arm column.

specified_nars

Optional data.frame of specified NARs. Should include "arm", "time", and "nar". Overrides data if present.

status_name

Name of status column.

time_name

Name of time column.

x_breaks

X-axis breaks.

x_labs

X-axis labels.

x_max

X-axis upper limit.

x_name

X-axis name.

y_labs

Y-axis labels.

Value

ggplot.


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