plotIllnessDeathModel: Plotting an illness-death-model.

Description Usage Arguments Author(s) See Also Examples

View source: R/plotIllnessDeathModel.R

Description

Plotting an illness-death-model using plot.Hist.

Usage

1
plotIllnessDeathModel(stateLabels, style = 1, recovery = FALSE, ...)

Arguments

stateLabels

Labels for the three boxes.

style

Either 1 or anything else, switches the orientation of the graph. Hard to explain in words, see examples.

recovery

Logical. If TRUE there will be an arrow from the illness state to the initial state.

...

Arguments passed to plot.Hist.

Author(s)

Thomas Alexander Gerds <tag@biostat.ku.dk>

See Also

plotCompetingRiskModel, plot.Hist

Examples

1
2
3
4
5
6
7
plotIllnessDeathModel()
plotIllnessDeathModel(style=2)
plotIllnessDeathModel(style=2,
                      stateLabels=c("a","b\nc","d"),
                      box1.col="yellow",
                      box2.col="green",
                      box3.col="red")

prodlim documentation built on Nov. 17, 2019, 5:06 p.m.