Derive a legible colour by contrasting against fill
Source:R/scale-contrast.R
aes_colourcontrast.RdNote: this sets colour, not fill — fill is the value it reads
from, colour is what it derives. Maps colour to a dark or light
shade chosen for contrast against the layer's fill aesthetic,
evaluated after scale training via ggplot2::after_scale(). Attaches
no scale itself — sits downstream of whatever fill scale you've
already applied.
Value
A ggplot2 mapping object (as returned by ggplot2::aes()).