scale for plotting separate color gradients for positive and negative values
Source:R/sugar.R
scale_fill_bisided.Rd
scale for plotting separate color gradients for positive and negative values
Usage
scale_fill_bisided(
name = ggplot2::waiver(),
neg_scale = scale_fill_distiller(palette = "Blues", direction = 1),
pos_scale = scale_fill_distiller(palette = "Reds"),
symmetric = TRUE
)
Arguments
- name
the scale name to be printed in the legend (above positive scale)
- neg_scale
a scale_fill_* object used for negative values
- pos_scale
a scale_fill_* object used for positive values
- symmetric
if TRUE, the limits of the positive scale will equal the inverse limits of the negative scale. Said differently, this makes the positive and negative scales symmetric