plot.jointRecCompet | R Documentation |
Plots of estimated baseline survival and hazard functions of joint competing recurrent model (output from an object of class 'jointRecCompet') for each type of event (recurrent and the two terminal events). Confidence intervals are allowed.
## S3 method for class 'jointRecCompet'
plot(x, event = "All", type.plot = "Hazard",
conf.bands = FALSE, pos.legend = "topright", cex.legend = 0.7, ylim, main,
color1="red", color2="blue", colorEnd="green", median=TRUE, Xlab = "Time",
Ylab = "Hazard function", ...)
x |
A joint competing risk model, i.e. an object of class
|
event |
a character string specifying the type of outcome. Possible value are "Recurrent", "Terminal1", "Terminal2", or "All". The default is "All". |
type.plot |
a character string specifying the type of curve. Possible value are "Hazard", or "Survival". The default is "Hazard". Only the first words are required, e.g "Haz", "Su" |
conf.bands |
logical value. Determines whether confidence intervals will be plotted. The default is to do so. |
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 '"topright"' |
cex.legend |
character expansion factor *relative* to current 'par("cex")'. Default is 0.7 |
ylim |
y-axis limits |
main |
plot title |
color1 |
curve color for recurrent event of type 1 (integer or color name in quotation marks) |
color2 |
curve color for recurrent event of type 2 (integer or color name in quotation marks) |
colorEnd |
curve color for terminal event (integer or color name in quotation marks) |
median |
Logical value. Determines whether survival median will be plotted. Default is TRUE. |
Xlab |
Label of x-axis. Default is '"Time"' |
Ylab |
Label of y-axis. Default is '"Hazard function"' |
... |
Other graphical parameters |
Print a plot of the baseline survival or hazard functions for each type of event or both with the confidence intervals or not (conf.bands argument)
jointRecCompet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.