coxreg
objectsA plot of a baseline function of a coxreg
fit is produced, one curve
for each stratum. A wrapper for plot.survfit
in survival
.
# S3 method for coxreg
plot(
x,
fn = c("cum", "surv", "log", "loglog"),
conf.int = FALSE,
fig = TRUE,
xlim = NULL,
ylim = NULL,
main = NULL,
xlab = "Duration",
ylab = "",
col = 1,
lty = 1,
printLegend = TRUE,
...
)
An object of class hazdata
containing the coordinates of the
curve(s).
A coxreg
object
What should be plotted? Default is "cumhaz", and the other choices are "surv", "log", and "loglog".
logical or a value like 0.95 (default for one curve).
logical. If TRUE
the plot is actually drawn, otherwise
only the coordinates of the curve(s) are returned.
Start and end of the x axis.
Start and end of the y axis.
A headline for the plot
Label on the x axis.
Label on the y axis.
Color of the curves. Defaults to 'black'.
Line type(s).
Either a logical or a text string; if TRUE
, a
legend is printed at a default place, if FALSE
, no legend is printed.
Otherwise, if a text string, it should be one of "bottomleft",
"bottomright", "topleft", etc., see legend
for all possible
choices.
Other parameters to pass to the plot.