powered by
Drawing Forest Plot for CoxPH model
ggforest(model, alpha = 0.05, plot.title = "Forest plot for coxph model", ggtheme = theme_survminer(), palette = c("black", "red4"), xlab = "Hazard ratio", ...)
an object of class coxph.
significance level for coloring.
legend title.
function, ggplot2 theme name. Default value is theme_classic2. Allowed values include ggplot2 official themes: see theme.
the color palette to be used for coloring of significant variables.
Label in OX axis.
further arguments passed to the function ggpar for customizing the plot.
ggpar
return an object of class ggplot
require("survival") model <- coxph( Surv(time, status) ~ sex + rx + adhere, data = colon ) ggforest(model)
Run the code above in your browser using DataLab