ggkmcif: Create Kaplan-Meier or cumulative incidence plots

View source: R/deprecated.R

ggkmcifR Documentation

Create Kaplan-Meier or cumulative incidence plots

Description

[Deprecated]

ggkmcif() was deprecated in version 0.1.2 and will be removed in a future version. Please use ggkmcif2() instead.

Usage

ggkmcif(
  response,
  cov = NULL,
  data,
  type = NULL,
  pval = TRUE,
  HR = FALSE,
  HR_pval = FALSE,
  conf.curves = FALSE,
  conf.type = "log",
  table = TRUE,
  times = NULL,
  xlab = "Time",
  ylab = NULL,
  main = NULL,
  stratalabs = NULL,
  strataname = nicename(cov),
  stratalabs.table = NULL,
  strataname.table = strataname,
  median.text = FALSE,
  median.lines = FALSE,
  median.CI = FALSE,
  set.time.text = NULL,
  set.time.line = FALSE,
  set.time = 5,
  set.time.CI = FALSE,
  censor.marks = TRUE,
  censor.size = 3,
  censor.stroke = 1.5,
  fsize = 10,
  nsize = 3,
  lsize = 1,
  psize = 3.5,
  median.size = 3,
  median.pos = NULL,
  median.lsize = 1,
  set.size = 3,
  set.pos = NULL,
  set.lsize = 1,
  ylim = c(0, 1),
  col = NULL,
  linetype = NULL,
  xlim = NULL,
  legend.pos = NULL,
  pval.pos = NULL,
  plot.event = 1,
  event = c("col", "linetype"),
  flip.CIF = FALSE,
  cut = NULL,
  eventlabs = NULL,
  event.name = NULL,
  Numbers_at_risk_text = "Numbers at risk",
  HR.digits = 2,
  HR.pval.digits = 3,
  pval.digits = 3,
  median.digits = 3,
  set.time.digits = 3,
  returns = FALSE,
  print.n.missing = TRUE
)

Arguments

response

Character vector with time and status column names

cov

Covariate column name (optional)

data

Input dataframe

type

Plot type ("KM" or "CIF", auto-detected if NULL)

pval

Whether to show p-values

conf.curves

Whether to show confidence bands

table

Whether to include risk table

times

Numeric vector of times for the x-axis

xlab

X-axis label

ylab

Y-axis label

col

colours vector

plot.event

Events to plot

returns

Whether to return list with plot and at risk table

Value

See ggkmcif2() for return value details


reportRmd documentation built on March 20, 2026, 5:06 p.m.