scale_fill_symetric: Continuous fill scale that is symmetric around 0

View source: R/ggplot2_helpers.R

scale_fill_symetricR Documentation

Continuous fill scale that is symmetric around 0

Description

Continuous fill scale that is symmetric around 0

Usage

scale_fill_symetric(
  ...,
  limit = function(range) max(abs(range)),
  limits = function(range) (if (is.function(limit)) limit(range) else range) * c(-1, 1)
)

Arguments

...

arguments passed to ggplot2::scale_fill_continuous()

limit

Either a function of the data range or a scalar, defining the upper limit used to compute the limits. ignored if limits is specified.

limits

the limits passed to ggplot2::scale_fill_continuous()

See Also

ggplot2::scale_fill_continuous()


jan-glx/schelpr documentation built on March 5, 2025, 10:12 a.m.