kmNatrisk: kmNatrisk

Description Usage Arguments Value Author(s)

View source: R/kmNatrisk.R

Description

Survival curves displaying number at risk.

Usage

1
2
3
4
5
6
7
8
kmNatrisk(km, mark = 3, simple = FALSE, xaxis.at = pretty(km$time),
  xaxis.lab = xaxis.at, lty.surv = 1, lwd.surv = 1, col.surv = 1,
  lty.ci = 0, lwd.ci = 1, col.ci = col.surv, group.names = NULL,
  group.order = seq(length(km$n)), extra.left.margin = 4,
  label.n.at.risk = FALSE, draw.lines = TRUE, cex.axis = 1, xlab = "",
  ylab = "", main = "", xlim = c(0, max(km$time)), ylim = c(0, 1),
  grid = TRUE, lty.grid = 1, lwd.grid = 1, col.grid = grey(0.9),
  legend = !is.null(km$strata), loc.legend = "topright", add = FALSE, ...)

Arguments

km

output from survfit function in survival package.

Value

draws Kaplan Meier curves with N at risk.

Author(s)

JG


juttaGa/jmisc documentation built on May 20, 2019, 5:16 a.m.