View source: R/ggplot2_helpers.R
scale_fill_symetric | R Documentation |
Continuous fill scale that is symmetric around 0
scale_fill_symetric(
...,
limit = function(range) max(abs(range)),
limits = function(range) (if (is.function(limit)) limit(range) else range) * c(-1, 1)
)
... |
arguments passed to |
limit |
Either a function of the data range or a scalar, defining the upper limit used to compute the limits. ignored if |
limits |
the limits passed to |
ggplot2::scale_fill_continuous()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.