legend.det | R Documentation |
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.
legend.det(legend, where = "ur", order = 1:length(legend), col, lty)
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 |
The main task of this function is to place the box in an easy way.
Nothing interesting (the value returned by legend()
.
David van Leeuwen
plot.det()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.