Plot(s) of the hazard, cumulative hazards, and/or the survivor function(s) for each stratum.
# S3 method for tpchreg
plot(
x,
fn = c("haz", "cum", "sur"),
main = NULL,
xlim = NULL,
ylim = NULL,
xlab = "Duration",
ylab = "",
col,
lty,
printLegend = TRUE,
...
)
A tpchreg
object
Which functions shoud be plotted! Default is the hazard function.
Header for the plot
x limits
y limits
x label
y label
Color(s) for the curves. Defaults to black.
Line type for the curve(s). Defaults to 1:(No. of strata).
Logical, or character ("topleft", "bottomleft",
"topright" or "bottomright"); if TRUE
or character, a legend is added
to the plot if the number of strata is two or more.
Extra parameters passed to 'plot' and 'lines'.
No return value.