groupmetric_2panel Draws plots of a group fairness metric with a second panel underneath
groupmetric_2panel(
objs,
labels,
col = 1:length(objs),
lty = rep(1, length(col)),
yrange = NULL,
ci_col = 1:length(objs),
highlight = NULL,
logscale = FALSE,
mar_scale = 1,
lpos = NULL,
yrange_lower = NULL,
...
)
No return value, draws a figure
list of fairness objects. Each should contain sub-objects 'x', 'y' and 'ci', which specify x and y values and half-widths of confidence intervals around y.
labels to use in legend
line colours
line type, defaults to 1
limit of y axis; defaults to 0,1
confidence envelope colours. These will be transparent.
if non-null, draw a point at a particular cutoff
if TRUE, draw with log-scale.
scale bottom and left margins by this amount. Also scales legend.
legend position
y range for lower plot. If NULL, generates automatically
other parameters passed to legend()