powered by
roc_2panel Draws a ROC curve (with legend) with a second panel underneath showing sensitivity difference.
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, ... )
No return value, draws a figure
list of sparraROC objects (if one object, plots folds separately)
labels to use in legend
line colours
line type, defaults to 1
line type for x-y line, defaults to 2 (dashed)
line colour for x-y line, defaults to red
if non-null, add a point at this cutoff
scale bottom and left margins by this amount. Also scales legend.
y range for lower plot. If NULL, generates automatically
other parameters passed to legend()
# See vignette
Run the code above in your browser using DataLab