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),
lty = rep(1, length(col)),
xy_lty = 2,
xy_col = phs_colours("phs-magenta"),
ci_col = rep(NA, length(col)),
highlight = NULL,
mar_scale = 1,
yrange_lower = NULL,
...
)
Arguments
cals |
list of calibration objects, output from getcal(). |
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 phs-magenta |
ci_col |
colours to draw confidence intervals on lower panel; NA to not draw. |
highlight |
if non-null, highlight a particular value |
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]