Learn R Programming

survCurve (version 1.0)

Plots Survival Curves Element by Element

Description

Plots survival models from the 'survival' package. Additionally, it plots curves of multistate models from the 'mstate' package. Typically, a plot is drawn by the sequence survplot(), confIntArea(), survCurve() and nrAtRisk(). The separation of the plot in this 4 functions allows for great flexibility to make a custom plot for publication.

Copy Link

Version

Install

install.packages('survCurve')

Monthly Downloads

134

Version

1.0

License

MIT + file LICENSE

Maintainer

Melchior Burri

Last Published

April 6th, 2020

Functions in survCurve (1.0)

survCurve

Draws a survival curve for one group and one event.
survPlot

Setup for a plot for survival data without the curves.
extractOneGroupOneEvent

Extracts one group and one event of a survfit model as a data frame.
survLable

Adds number at risk of a survival model to a plot. Adds label to plot.
confIntArea

Adds a confident interval area of a survival model to a plot.
nrAtRisk

Adds number at risk of a survival model to a plot.