plotROC: ROC Curve plot

plotROCR Documentation

ROC Curve plot

Description

From a 'DET' object, this function plots the ROC curve associated with the DET curve of the object. It also draws the confidence band when it is available in the object.

Usage

plotROC(dets, ...)

Arguments

dets

A 'DET' object from the list of a 'DETs' object computed by the detc function.

...

Further graphical arguments passed to the plot function.

Examples

library(DET)
n = 5000
#Predictors with normal distribution
set.seed(1235)
scoreNegative = rnorm(n, mean = 0.25, sd = 0.125)
set.seed(11452)
scorePositive = rnorm(n, mean = 0.55, sd = 0.125)
response = as.factor(c(rep(c("target"), times = n), rep(c("nontarget"), times = n)))
predictor = matrix(c(scoreNegative, scorePositive), ncol = 1)
colnames(predictor) = c("DET")
detCurve = detc(response,
                predictor,
                names = colnames(predictor),
                positive = "target")
plotROC(detCurve@detCurves$DET,
         main = "Example")

DET documentation built on Aug. 29, 2025, 5:17 p.m.

Related to plotROC in DET...