annotate.DET: This function adds a geom to a plot which annotates DET...

annotate.DETR Documentation

This function adds a geom to a plot which annotates DET curves with their names. The annotations are spaced apart so as not to occlude one another.

Description

See the annotation function in ggplot2 for the meaning of the parameters.

Usage

annotate.DET(
  stat = "identity",
  data = NULL,
  mapping = aes(fmr, fnmr, label = label),
  position = "identity",
  ...,
  inherit.aes = TRUE,
  show.legend = FALSE,
  bgfill = "white",
  bgalpha = 1,
  label.padding = unit(0.25, "lines"),
  na.rm = FALSE,
  parse = FALSE
)

Examples

gen.scores <- runif(1e5, 0, 10)
imp.scores <- rnorm(1e5)
DET <- make.DET(gen.scores, imp.scores)
DET[, curve := "Curve Name"]
plot.DET(DET, xlim=c(1e-4, 0.2), col="darkred", legend.position='none') +
annotate.DET()

gwquinn/NistBiom documentation built on July 16, 2024, 12:34 p.m.