brouillet - Reusable Contrast-Curve Colour Gradients
Build a colour-gradient specification once and reuse it
across plots. A contrast curve, parameterised by centre and
width in relative units, controls where along the data range
the colour change is concentrated, so a narrow band of interest
can be expanded and the uninformative remainder compressed.
Colours are interpolated in CIE Lab by default. Specifications
convert to a value-to-colour function usable by any plotting
system, or to 'ggplot2' fill and colour scales, and support
two-sided out-of-range (clipping) colours shown as bands on the
colourbar.