survs_plot: Plot survival functions

Description Usage Arguments Value

View source: R/funcs_2.R

Description

Plot survival functions returned by survFUN(). KM estimation of the survival function is also plotted (survfit.object).

Usage

1
2
3
survs_plot(surv.funs, survfit.object, period.length, xlim = 2 *
  max(summary(survfit.object)$time), call.mfrow = TRUE,
  use.letters = call.mfrow, rev = TRUE, ...)

Arguments

surv.funs

List of functions returned by survFUN.

survfit.object

Object returned by survfit.

period.length

Length of each period.

xlim

Maximum xlim for the plot.

rev

Defaults to TRUE. See argument rev in statTools::descomp. It is reverses the vector passed to mfrow argument.

...

Further arguments passed to par.

call.par

Call par() with mfrow for plotting all graphics in the same figure.

letters

Whether to plot alphabet letters top-left corner of each plot.

Value

No output is produced. Only a plot.


gcastella/predRCT documentation built on May 16, 2019, 10:15 p.m.