plot_twoclass_roc: Visualizing the ROC curve for a classification model

View source: R/two_class_diag_plots.R

plot_twoclass_rocR Documentation

Visualizing the ROC curve for a classification model

Description

This function plots the ROC curve for a classification model.

Usage

plot_twoclass_roc(dat, y_name, event_level = "first")

Arguments

dat

The predictions data frame in the organize_data() result. Following variables are required: .outcome, .pred, .color, and .hover.

y_name

The y/response variable for the model.

event_level

A single character value for the level corresponding to the event.

Value

A plotly::ggplotly() object.


shinymodels documentation built on May 29, 2024, 2:22 a.m.