A 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, ... )
| x | A |
|---|---|
| fn | What should be plotted? Default is "cumhaz", and the other choices are "surv", "log", and "loglog". |
| conf.int | logical or a value like 0.95 (default for one curve). |
| fig | logical. If |
| xlim | Start and end of the x axis. |
| ylim | Start and end of the y axis. |
| main | A headline for the plot |
| xlab | Label on the x axis. |
| ylab | Label on the y axis. |
| col | Color of the curves. Defaults to 'black'. |
| lty | Line type(s). |
| printLegend | Either a logical or a text string; if |
| ... | Other parameters to pass to the plot. |
An object of class hazdata containing the coordinates of the
curve(s).