Usage
# S3 method for hazdata
plot(x, strata = NULL,
fn = c("cum", "surv", "log", "loglog"), fig = TRUE,
xlim=NULL, ylim=NULL, main=NULL, xlab=NULL, ylab=NULL, col = "black",
lty = 1, printLegend = TRUE, where = NULL, …)
Arguments
x
A hazdata
object, typically the 'hazards' element in
the output from link{coxreg}
with hazards = TRUE
.
strata
Stratum names if there are strata present.
fig
Should a plot actually be produced? Default is TRUE.
xlim
Horizontal plot limits. If NULL, calculated by the function.
ylim
Vertical plot limits. If NULL, set to c(0, 1)
main
A heading for the plot.
col
Color of the lines. May be a vector of length equal to
No. of strata.
lty
Line type(s). May be a vector of length equal to
No. of strata.
printLegend
Logical; should a legend be produced?
Defaults to TRUE.
where
Where should the legend be placed (if(printLegend))?
If NULL
, "bottomleft" for fn = "surv", otherwise "bottomright".