Skip to contents

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()
#> Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
#>  Please use `linewidth` instead.
#>  The deprecated feature was likely used in the ROCnGO package.
#>   Please report the issue at <https://github.com/pabloPNC/ROCnGO/issues>.
#> Ignoring unknown labels:
#>  fill : "Bound"