legend.det: Add a legnd to a DET plot

legend.detR Documentation

Add a legnd to a DET plot

Description

This function puts a legend in a DET plot. According to what your typical performance is, you can place the legen either in the upper right corner or lower left corner.

Usage

legend.det(legend, where = "ur", order = 1:length(legend), col, lty)

Arguments

legend

An array of legend texts

where

Position to place legend in plot, "ur" or "ll"

order

Order in which the legend text and lines are to be plotted, so allow legend order to match lines in the DET plot

col

The colors of the lines, as reference to the palette

lty

The line types of the lines

Details

The main task of this function is to place the box in an easy way.

Value

Nothing interesting (the value returned by legend().

Author(s)

David van Leeuwen

See Also

plot.det()

Examples

## make an empty DET frame
det.plot(NULL)
## Add a legend
legend.det(c("one system", "another system"), order=c(2,1), lty=1:2)

davidavdav/ROC documentation built on Sept. 8, 2023, 2:39 p.m.