risk.table: Title

Description Usage Arguments Examples

View source: R/survplot_functions.R

Description

Title

Usage

1
2
3
4
5
6
7
8
risk.table(
  survFit.obj,
  f.levels = NULL,
  times = NULL,
  col = "black",
  ret.data = FALSE,
  max.year = NULL
)

Arguments

survFit.obj

the resulting object from survival::survfit()

f.levels

factor levels of the groups

times

a numeric vector of the summary times for the KM estimates

col

a string indicating the text color

ret.data

boolean - return the summary table or not

max.year

a numeric of the the x-axis limit

Examples

1
2
fit <-  survival::survfit(survival::Surv(time, status) ~ x, data = survival::aml)
risk.table(survFit.obj=fit)

jennylsmith/fusBreakpoint documentation built on Oct. 7, 2021, 8:04 p.m.