survfitms: Plot the Multi State Objects with the ggplot2 Package

Description Usage Arguments Value Examples

Description

Function ggplotit.survfitms plots objects of the class survfitmssurvival Calculate nonparametric cumulative incidence functions. Competing Risks Model.

Usage

1
2
3
## S3 method for class 'survfitms'
ggplotit(obj, conf.int = FALSE, breaks = NULL,
  labels = NULL, ...)

Arguments

conf.int

shall the confidence interval be plotted?

breaks

coordinates at whcih CI bars shall be added

labels

shall labels be added?

...

Other parameters

x

An object of class survfitms

Value

An ggplot2 plot

Examples

1
2
3
4
5
6
7
## Not run: 
library(mstate)
data(aidssi)
ci <- survfit(Surv(time=aidssi$time, status=aidssi$status)~1)
ggplotit(ci)

## End(Not run)

pbiecek/ggplotit documentation built on May 24, 2019, 10:37 p.m.