Learn R Programming

hdnom (version 6.0.4)

kmplot_raw: Kaplan-Meier Plot with Number at Risk Table

Description

Kaplan-Meier Plot with Number at Risk Table

Usage

kmplot_raw(
  fit,
  group.name = NULL,
  time.at = NULL,
  surv.df = NULL,
  col.pal = NULL
)

Arguments

fit

a survfit object

group.name

Group labels. Default is Group 1, Group 2, ... Group k.

time.at

Time points to evaluate the number at risk.

surv.df

Data frame containing survival time, event and risk group for log-rank test.

col.pal

color palette to use