cal_2panel {SPARRAfairness} | R Documentation |
cal_2panel Draws calibration curves (with legend) with a second panel underneath showing predicted differences.
Description
cal_2panel Draws calibration curves (with legend) with a second panel underneath showing predicted differences.
Usage
cal_2panel(
cals,
labels,
col = 1:length(cals),
xy_col = phs_colours("phs-magenta"),
ci_col = col,
highlight = NULL,
yrange_lower = NULL,
legend_title = ""
)
Arguments
cals |
list of calibration objects, output from getcal(). |
labels |
labels to use in legend |
col |
line colours |
xy_col |
line colour for x-y line, defaults to phs-magenta |
ci_col |
colours to draw confidence intervals on lower panel; NA to not draw. |
highlight |
if non-null, highlight a particular value |
yrange_lower |
y range for lower plot. If NULL, generates automatically |
legend_title |
title for legend, defaults to nothing |
Value
Silently return ggplot object
Examples
# See vignette
[Package SPARRAfairness version 0.1.0.0 Index]