Description Usage Arguments Value Examples
Show Cox Models
1 2 3 4 5 6 7 8 9 10 |
models |
a |
model_names |
model names to show when |
covariates |
a character vector optionally listing the variables to include in the plot (defaults to all variables). |
merge_models |
if 'TRUE', merge all models and keep the plot tight. |
drop_controls |
works when |
headings |
a |
... |
other arguments passing to |
a ggplot
object
1 2 3 4 5 6 7 8 9 10 | library(survival)
zz <- ezcox(lung, covariates = c("sex", "ph.ecog"), controls = "age", return_models = TRUE)
mds <- get_models(zz)
show_models(mds)
show_models(mds, model_names = paste0("Model ", 1:2))
show_models(mds, covariates = c("sex", "ph.ecog"))
show_models(mds, drop_controls = TRUE)
show_models(mds, merge_models = TRUE)
p <- show_models(mds, merge_models = TRUE, drop_controls = TRUE)
p
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.