autoplot.aareg | R Documentation |
survival::aareg
Autoplot survival::aareg
## S3 method for class 'aareg'
autoplot(
object,
maxtime = NULL,
surv.connect = TRUE,
facets = TRUE,
ncol = NULL,
xlab = "",
ylab = "",
...
)
object |
|
maxtime |
truncate the input to the model at time "maxtime" |
surv.connect |
logical frag indicates whether connects survival curve to the origin |
facets |
Logical value to specify use facets |
ncol |
Number of facet/subplot columns |
xlab |
character vector or expression for x axis label |
ylab |
character vector or expression for y axis label |
... |
other arguments passed to |
ggplot
## Not run:
if (requireNamespace("survival", quietly = TRUE)) {
autoplot(aareg(Surv(time, status) ~ age + sex + ph.ecog, data = lung, nmin = 1))
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.