prc_2panel {SPARRAfairness}R Documentation

prc_2panel Draws a PRC curve (with legend) with a second panel underneath showing precision difference.

Description

prc_2panel Draws a PRC curve (with legend) with a second panel underneath showing precision difference.

Usage

prc_2panel(
  prcs,
  labels,
  col = 1:length(prcs),
  lty = rep(1, length(col)),
  highlight = NULL,
  mar_scale = 1,
  yrange_lower = NULL,
  ...
)

Arguments

prcs

list of sparraPRC objects. If of length 1, splits into folds

labels

labels to use in legend

col

line colours

lty

line type, defaults to 1

highlight

if non-null, draw a point at a particular cutoff

mar_scale

scale bottom and left margins by this amount. Also scales legend.

yrange_lower

y range for lower plot. If NULL, generates automatically

...

other parameters passed to legend()

Value

No return value, draws a figure

Examples

# See vignette

[Package SPARRAfairness version 0.0.0.1 Index]