Learn R Programming

SPARRAfairness (version 0.1.0.0)

roc_2panel: 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 = names(rocs),
  col = 1:length(rocs),
  xy_col = phs_colours("phs-magenta"),
  highlight = NULL,
  yrange_lower = NULL,
  legend_title = ""
)

Value

Invisibly returns plot as ggplot object

Arguments

rocs

list of sparraROC objects

labels

labels to use in legend; default to names of rocs.

col

line colours

xy_col

line colour for x-y line, defaults to red

highlight

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