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
I found a problem with guide_colorsteps after installing the last ggplot2 version.
I'm not sure why, but the order of classes is not correct. Some of the extreme classes are showing up in the middle. Using the function example data it seems to work, but here it doesn't.
It's because of alphanumeric sorting of the breaks, which shouldn't happen for breaks parsed from cut()'s intervals, but should happen for numeric breaks.
Activity
[-]guide_colorsteps() from ne ggplot2 version[/-][+]guide_colorsteps() from new ggplot2 version[/+]teunbrand commentedon Mar 7, 2024
Thanks for the report! I can confirm this is a bug.
More minimal reprex below:
Created on 2024-03-07 with reprex v2.1.0
dominicroye commentedon Mar 7, 2024
It's really strange because I had tried it with a more minimal dataset, and as you can see here, it's correct.
Created on 2024-03-07 with reprex v2.1.0
teunbrand commentedon Mar 7, 2024
It's because of alphanumeric sorting of the breaks, which shouldn't happen for breaks parsed from
cut()'s intervals, but should happen for numeric breaks.