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
Some packages use scale_colour_continuous(low = "blue", high = "red"). This is only valid when end-users haven't touched the default "ggplot2.continuous.colour" options. The pattern these packages use are thus fragile and instead they should use scale_colour_gradient().
Likewise for scale_colour_discrete() and scale_colour_hue() and the fill aesthetic equivalents.
However, because the problem is quite ubiquitous (39 packages), we should have fallbacks in place.
I'll suggest that we use a grumpy fallback that always throws a warning, as the usage remains incorrect.
The text was updated successfully, but these errors were encountered:
teunbrand
added a commit
to teunbrand/ggplot2
that referenced
this issue
Jan 22, 2025
This issue was identified in #6287.
Some packages use
scale_colour_continuous(low = "blue", high = "red")
. This is only valid when end-users haven't touched the default"ggplot2.continuous.colour"
options. The pattern these packages use are thus fragile and instead they should usescale_colour_gradient()
.Likewise for
scale_colour_discrete()
andscale_colour_hue()
and thefill
aesthetic equivalents.However, because the problem is quite ubiquitous (39 packages), we should have fallbacks in place.
I'll suggest that we use a grumpy fallback that always throws a warning, as the usage remains incorrect.
The text was updated successfully, but these errors were encountered: