Learn R Programming

CPHshape (version 1.0.1)

plot.CPHshape: Plot a shape constrained MLE of a hazard function

Description

plot method for class "CPHshape".

Usage

"plot"(x, cex=0.5, xlim=range(x$h.range), ylim=range(x$h.val), xlab="", ylab="hazard function", ...)

Arguments

x
object of class "CPHshape" (typically output from either find.shapeMLE or find.shapeCPH).
cex
A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. In this setting, it changes the size of the dots representing continuity points of the hazard. Default is set to 0.5.
xlim
limits of the x axis in the plot. Defaults to full range of data.
ylim
limits of the y axis in the plot. Defaults to full range of the MLE.
xlab
a label for the x axis. Defaults to empty.
ylab
a label for the y axis. Default is set to "hazard function".
...
Aditional arguments

Details

For examples, see find.shapeMLE or find.shapeCPH.