You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Needed to set the direction on a gradient, which the docs indicate is can be done by setting palette.
That's broken, though. Looks like lack of checking for an existing palette argument somewhere along the call stack leads to a second palette getting inserted.
A basic workaround looks to be call the scale directly and give those values to high and low though, depending on the gradient being used, that can compromise perceptual uniformity.
The text was updated successfully, but these errors were encountered:
Hi there, thanks for the report! You're right that this doesn't work, but the error here is that palette is a documented parameter while it isn't (not that the argument doesn't work). The documentation side of things has fixed already in #5992 and can be seen in the development docs: https://ggplot2.tidyverse.org/dev/reference/scale_gradient.html.
As for the palettes, these are accessible if you use the continuous_scale() and discrete_scale() constructors. In the future, it'll also be possible to set default palettes via the theme.
Needed to set the direction on a gradient, which the docs indicate is can be done by setting
palette
.That's broken, though. Looks like lack of checking for an existing palette argument somewhere along the call stack leads to a second palette getting inserted.
A basic workaround looks to be call the scale directly and give those values to
high
andlow
though, depending on the gradient being used, that can compromise perceptual uniformity.The text was updated successfully, but these errors were encountered: