In short, it adds a midpoint argument to scale_{fill/colour}_gradientn() and scale_{fill/colour}_stepsn() functions.
The approach somewhat diverges from the gradient2/steps2 variant, which will not accept rescaler arguments. The gradientn/stepsn variants will accept a rescaler, but it overrides any midpoint setting.
This PR aims to fix #3738.
In short, it adds a
midpoint
argument toscale_{fill/colour}_gradientn()
andscale_{fill/colour}_stepsn()
functions.The approach somewhat diverges from the
gradient2
/steps2
variant, which will not acceptrescaler
arguments. Thegradientn
/stepsn
variants will accept arescaler
, but it overrides anymidpoint
setting.Reprex:
Created on 2024-04-03 with reprex v2.1.0