plot_cox_fit: Plot outcome and expected survival.

View source: R/plotting.R

plot_cox_fitR Documentation

Plot outcome and expected survival.

Description

Plots the actual and Cox model-predicted survival as a Kaplan-Meier plot.

Usage

plot_cox_fit(
  cox_model,
  data = NULL,
  palette = c("steelblue", "firebrick"),
  cust_theme = survminer::theme_survminer(),
  ...
)

Arguments

cox_model

a CoxpPH model or a coxex object.

data

the data frame used for the model construction. Ignored, if coxex object provided.

palette

color palette.

cust_theme

custom ggplot theme.

...

extra arguments passed to ggsurvplot_combine.

Value

a ggplot object.


PiotrTymoszuk/coxExtensions documentation built on Feb. 6, 2024, 10:58 p.m.