roc_2panel {SPARRAfairness}R Documentation

roc_2panel Draws a ROC curve (with legend) with a second panel underneath showing sensitivity difference.

Description

roc_2panel Draws a ROC curve (with legend) with a second panel underneath showing sensitivity difference.

Usage

roc_2panel(
  rocs,
  labels,
  col = 1:length(rocs),
  lty = rep(1, length(col)),
  xy_lty = 2,
  xy_col = phs_colours("phs-magenta"),
  highlight = NULL,
  mar_scale = 1,
  yrange_lower = NULL,
  ...
)

Arguments

rocs

list of sparraROC objects (if one object, plots folds separately)

labels

labels to use in legend

col

line colours

lty

line type, defaults to 1

xy_lty

line type for x-y line, defaults to 2 (dashed)

xy_col

line colour for x-y line, defaults to red

highlight

if non-null, add a point at this 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]