This function plots objects of class "surv_model_performance_rocs" - ROC curves for specific time points for survival models created using the model_performance(..., type="roc").
## S3 method for class 'surv_model_performance_rocs'plot( x,..., title ="ROC curves for selected time points", subtitle ="default", auc =TRUE, colors =NULL, facet_ncol =NULL)
Arguments
x: an object of class "surv_model_performance_rocs" to be plotted
...: additional objects of class "surv_model_performance_rocs" to be plotted together
title: character, title of the plot
subtitle: character, subtitle of the plot, 'default' automatically generates "created for XXX, YYY models", where XXX and YYY are the explainer labels
auc: boolean, whether the AUC values should be plotted
colors: character vector containing the colors to be used for plotting variables (containing either hex codes "#FF69B4", or names "blue")
facet_ncol: number of columns for arranging subplots
Returns
An object of the class ggplot.
Examples
library(survival)library(survex)model <- randomForestSRC::rfsrc(Surv(time, status)~ ., data = veteran)exp <- explain(model)m_perf_roc <- model_performance(exp, type ="roc", times = c(100,300))plot(m_perf_roc)
See Also
Other functions for plotting 'model_performance_survival' objects: plot.model_performance_survival(), plot.surv_model_performance()