legend.det: Add a legnd to a DET plot

Description Usage Arguments Details Value Author(s) See Also Examples

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

1
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

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

davidavdav/sretools.R documentation built on May 14, 2019, 10:37 p.m.