Learn R Programming

SPARRAfairness (version 0.1.0.0)

prc_2panel: 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 = names(prcs),
  col = 1:length(prcs),
  highlight = NULL,
  yrange_lower = NULL,
  legend_title = ""
)

Value

Silently return ggplot object

Arguments

prcs

list of sparraPRC objects.

labels

labels to use in legend

col

line colours

highlight

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

yrange_lower

y range for lower plot. If NULL, generates automatically

legend_title

title for legend, defaults to nothing

Examples

Run this code
# See vignette

Run the code above in your browser using DataLab