ggblend is an R package that adds support for R 4.2 blend modes
(e.g. "multiply", "overlay", etc) to ggplot2.
Details
The primary support for blending is provided by the blend() function,
which can be used to augment ggplot2::ggplot() layers/geoms or lists of
layers/geoms in a ggplot2::ggplot() specification.
For example, one can replace something like this:
With something like this:
In order to apply a "multiply" blend to the layer with geom_Y(...).
Package options
The following global options can be set using options() to modify the
behavior of ggblend:
"ggblend.check_blend": IfTRUE(default),blend()will warn if you attempt to use a blend mode not supported by the current graphics device, as reported bydev.capabilities()$compositing. Since this check can be unreliable on some devices (they will report not support a blend mode that they do support), you can disable this warning by setting this option toFALSE."ggblend.check_affine_transform": IfTRUE(default),affine_transform()will warn if you attempt to use a blend mode not supported by the current graphics device, as reported bydev.capabilities()$transformation. Since this check can be unreliable on some devices (they will report not support a blend mode that they do support), you can disable this warning by setting this option toFALSE.
Author
Maintainer: Matthew Kay mjskay@northwestern.edu (ORCID) [copyright holder]