Learn R Programming

frailtypack (version 2.8.3)

plot.predLongi: Plot predictions using a joint model for longitudinal data and a terminal event or a trivariate joint model for longitudinal data, recurrent events and a terminal event.

Description

Plots predicted probabilities of the event. Confidence intervals are allowed.

Usage

## S3 method for class 'predLongi':
plot(x, conf.bands=FALSE, pos.legend="topright", cex.legend=0.7,
   ylim=c(0,1), ...)

Arguments

x
An object inheriting from predLongi.
conf.bands
Logical value. Determines whether confidence intervals will be plotted. The default is FALSE.
pos.legend
The location of the legend can be specified by setting this argument to a single keyword from the list '"bottomright"', '"bottom"', '"bottomleft"', '"left"', '"topleft"', '"top"', '"topright"', '"right"' and '"center"'. The default is
cex.legend
size of the legend. Default is 0.7.
ylim
range of y-axis. Default is from 0 to 1.
...
Other unused arguments.

Value

  • Print one plot with as many curves as the number of profiles.