plot_cox_fit | R Documentation |
Plots the actual and Cox model-predicted survival as a Kaplan-Meier plot.
plot_cox_fit(
cox_model,
data = NULL,
palette = c("steelblue", "firebrick"),
cust_theme = survminer::theme_survminer(),
...
)
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
|
a ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.