plot.model_diagnostics_survival {survex} | R Documentation |
Plot Model Diagnostics for Survival Models
Description
This function plots objects of class "model_diagnostics_survival"
created
using the model_diagnostics()
function.
Usage
## S3 method for class 'model_diagnostics_survival'
plot(
x,
...,
plot_type = "deviance",
xvariable = "index",
smooth = as.logical(xvariable != "index"),
facet_ncol = NULL,
title = "Model diagnostics",
subtitle = "default",
colors = NULL
)
Arguments
x |
an object of class |
... |
additional objects of class |
plot_type |
character, either |
xvariable |
character, name of the variable to be plotted on x-axis (can be name of the variable to be drawn on the x-axis (can be any column from the |
smooth |
logical, shall the smooth line be added. Only used when |
facet_ncol |
number of columns for arranging subplots |
title |
character, title of the plot |
subtitle |
character, subtitle of the plot, |
colors |
character vector containing the colors to be used for plotting (containing either hex codes "#FF69B4", or names "blue"). |
Value
An object of the class ggplot
.