Modifies a mapped colour (or fill) aesthetic for contrast against
the fill (or colour) aesthetic.
Function can be spliced into ggplot2::aes with rlang::!!!.
Usage
aes_contrast(..., dark = NULL, light = NULL, aesthetic = "colour")
Arguments
- ...
Unused. Included to support a trailing comma.
- dark
A dark colour. If NULL, derived from theme text or panel background.
- light
A light colour. If NULL, derived from theme text or panel background.
- aesthetic
The aesthetic to be modified for contrast. Either "colour"
(default) or "fill".
Value
A ggplot2 mapping object suitable for use in ggplot2::aes() or as a
mapping = argument in a layer.