add_chance_line: Show chance line in a ROC plot

View source: R/plot_roc.R

add_chance_lineR Documentation

Show chance line in a ROC plot

Description

Plot chance line in a ROC plot.

Usage

add_chance_line()

Value

A ggplot layer instance object.

Examples

plot_roc_curve(iris, response = Species, predictor = Sepal.Width) +
 add_chance_line()

ROCnGO documentation built on Aug. 8, 2025, 6:07 p.m.