Skip to contents

Creates a diverging fill gradient. Defaults to red-gray-navy.

Usage

scale_fill_aib_div(
  low = "#C00404",
  mid = "#D0D0D0",
  high = "#1B3E6F",
  midpoint = 0,
  ...
)

Arguments

low

Color for the low end. Default is AIB red.

mid

Color for the midpoint. Default is light gray.

high

Color for the high end. Default is AIB navy.

midpoint

The data value mapped to the midpoint color. Default is 0.

...

Additional arguments passed to ggplot2::scale_fill_gradient2().

Value

A ggplot2 diverging fill scale.