powered by
Can be used on its own but is also useable as plotfun in node_pmterminal.
node_pmterminal
coxph_plot(mod, data = NULL, theme = theme_classic(), yrange = NULL)
A model of class coxph.
optional data frame. If NULL the data stored in mod is used.
A ggplot2 theme.
Range of the y variable to be used for plotting. If NULL it will be 0 to max(y).
# NOT RUN { if(require("survival")) { coxph_plot(coxph(Surv(futime, fustat) ~ factor(rx), ovarian)) } # }
Run the code above in your browser using DataLab