plot.DET: DET Curve plot

Description Usage Arguments Examples

Description

From a 'DET' object, this function plots the DET curve included in the object.

Usage

1
2
## S3 method for class 'DET'
plot(x, ...)

Arguments

x

An object of class "DET".

...

Further graphical arguments passed to the plot function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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")
plot(detCurve@detCurves$DET,
     main = "Example")

DET documentation built on April 3, 2021, 1:06 a.m.

Related to plot.DET in DET...