Cuminc: Plot the Cuminc Objects with the ggplot2 Package

Description Usage Arguments Value Examples

Description

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

Usage

1
2
## S3 method for class 'Cuminc'
ggplotit(x, conf.int = FALSE, labels = NULL, ...)

Arguments

x

An object of class Cuminc

conf.int

- shall the confidence interval be plotted?

labels

- shall labels be added?

...

Other parameters

Value

An ggplot2 plot

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(mstate)
data(aidssi)
ci <- Cuminc(time=aidssi$time, status=aidssi$status)
ggplotit(ci)
ggplotit(ci, conf.int=TRUE)
ggplotit(ci, conf.int=TRUE, labels=c("event-free","AIDS","SI"))

## End(Not run)

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