coxph_plot

0th

Percentile

Survival plot for a given coxph model with one binary covariate.

Can be used on its own but is also useable as plotfun in node_pmterminal.

Usage
coxph_plot(mod, data = NULL, theme = theme_classic(), yrange = NULL)
Arguments
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).

Aliases
  • coxph_plot
Examples
# NOT RUN {
if(require("survival")) {
  coxph_plot(coxph(Surv(futime, fustat) ~ factor(rx), ovarian))
}

# }
Documentation reproduced from package model4you, version 0.9-5, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.