roc_plot_multi: Generate an ROC curve plot with error bars showing 95 percent...

View source: R/roc_plots.R

roc_plot_multiR Documentation

Generate an ROC curve plot with error bars showing 95 percent confidence intervals

Description

Generate an ROC curve plot with error bars showing 95 percent confidence intervals

Usage

roc_plot_multi(df, outcome, prediction, model, ci = FALSE, plot_title = "")

Arguments

df

The df as a data.frame.

outcome

A character string containing the name of the column containing the outcomes (expressed as 0/1s).

prediction

A character string containing the name of the column containing the predictions.

model

A character string containing the name of the column containing the model label.

ci

Show confidence interval ribbon. Defaults to FALSE.

plot_title

A character string containing the title for the resulting plot.

Value

A ggplot containing the ROC plot

Examples

data(multi_model_dataset)
roc_plot_multi(multi_model_dataset, outcome = 'outcomes', prediction = 'predictions', model = 'model_name', ci = TRUE)

ML4LHS/runway documentation built on Sept. 9, 2023, 8:27 p.m.