Skip to contents

Maps colour to a dark or light shade chosen for contrast against the active theme's panel (or plot) background fill, evaluated after scale training via ggplot2::after_scale(). Attaches no scale itself.

Usage

aes_colourpanel(dark = NULL, light = NULL, ...)

Arguments

dark

A dark colour string or hex value. If NULL, derived from the active theme.

light

A light colour string or hex value. If NULL, derived from the active theme.

...

Unused. Included to support trailing commas.

Value

A ggplot2 mapping object (as returned by ggplot2::aes()).