coxph_plot | R Documentation |
Can be used on its own but is also useable as plotfun in
node_pmterminal
.
coxph_plot(mod, data = NULL, theme = theme_classic(), yrange = NULL)
mod |
A model of class coxph. |
data |
optional data frame. If NULL the data stored in mod is used. |
theme |
A ggplot2 theme. |
yrange |
Range of the y variable to be used for plotting. If NULL it will be 0 to max(y). |
if(require("survival")) {
coxph_plot(coxph(Surv(futime, fustat) ~ factor(rx), ovarian))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.