groupmetric_2panel Draws plots of a group fairness metric with a second panel underneath
groupmetric_2panel(
objs,
labels = names(objs),
col = 1:length(objs),
yrange = NULL,
ci_col = col,
highlight = NULL,
logscale = FALSE,
lpos = c(1, 0),
yrange_lower = NULL,
legend_title = ""
)
Silently return ggplot object
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
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.
legend position; as accepted by ggplot legend.position
y range for lower plot. If NULL, generates automatically
title for legend, defaults to nothing