cal_2panel Draws calibration curves (with legend) with a second panel underneath showing predicted differences.
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,
...
)
No return value, draws a figure
list of calibration objects, output from getcal().
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 phs-magenta
colours to draw confidence intervals on lower panel; NA to not draw.
if non-null, highlight a particular value
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()