Learn R Programming

ROCnGO (version 0.1.0)

add_chance_line: Show chance line in a ROC plot

Description

Plot chance line in a ROC plot.

Usage

add_chance_line()

Arguments

Value

A ggplot layer instance object.

Examples

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

Run the code above in your browser using DataLab