Learn R Programming

SPARRAfairness (version 0.1.0.0)

cal_2panel: 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 = ""
)

Value

Silently return ggplot object

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

Examples

Run this code
# See vignette

Run the code above in your browser using DataLab