plot.DET | R Documentation |
Plots one or more DET curves.
## S3 method for class 'DET'
plot(
DETs,
xlim = c(1e-06, 0.2),
ylim = "auto",
xlabel = ifelse("fmr" %in% names(DETs), "False Match Rate",
"False Positive Identification Rate"),
ylabel = ifelse("fnmr" %in% names(DETs), "False Nonmatch Rate",
"False Negative Identification Rate"),
x.axis = log.scale(name = xlabel, axis = "x"),
y.axis = log.scale(name = ylabel, axis = "y", labels = identity, breaks =
log.ticks(1:10)),
FMR.sort = 10^mean(log10(xlim)),
prepend.FNMR = FALSE,
plotter = geom_step,
legend = scale_colour_manual(values = colors.15),
colour = key(DETs),
theme = DET.theme,
legend.position = "auto",
...
)
DETs |
A data.table representing the DET curve(s) to plot. |
xlim |
The horizontal axis limits (default: c(8e-7, 0.2)). |
ylim |
The vertical axis limits. "auto" (the default) selects limits that fully display all curves over the range specified by xlim. |
xlabel |
The horizontal axis label (default: FMR) |
ylabel |
The vertical axis label (default: FNMR) |
x.axis |
The horizontal axis scale object. |
y.axis |
The vertical axis scale object. |
FMR.sort |
Sort the curves in the legend according to their FNMR at this FMR (default: 1e-5). |
plotter |
The ggplot2 line drawing function (default: geom_step). |
theme |
The ggplot2 theme to apply (default: DET.theme()). |
... |
Additional parameters to pass to the theme object. |
print.FNMR |
If nonzero, prepend legend labels with the curve's FNMR at FMR=print.FNMR. If zero (the default), nothing is prepended. |
A ggplot plotting object.
gen.scores <- runif(1e5, 0, 10)
imp.scores <- rnorm(1e5)
DET <- make.DET(gen.scores, imp.scores)
plot.DET(DET, xlim=c(1e-4, 0.2), col="darkred", legend.position='none')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.