View source: R/SPARRAfairness_functions.R
roc_2panel | R Documentation |
roc_2panel Draws a ROC curve (with legend) with a second panel underneath showing sensitivity difference.
roc_2panel(
rocs,
labels = names(rocs),
col = 1:length(rocs),
xy_col = phs_colours("phs-magenta"),
highlight = NULL,
yrange_lower = NULL,
legend_title = ""
)
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 |
Invisibly returns plot as ggplot object
# See vignette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.