-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scale_*_continuous
fails to render breaks if axis is reversed
#5918
Comments
These seem to work:
These (also) don't:
|
Strange, I don't think I've encountered this before. |
Hmm, its a method that has been passed around, although now you mention it I actually don't know whether it is officially supported. The method described in Chang's "The R Graphics Cookbook", when one needs to both reverse an axis and set it's range is as follows:
This does work. |
It sort of makes sense that this works for I think that probably the most consistent thing to do is always have sorted limits internally, so that it shouldn't matter if you put |
Where a scale is reversed in
scale_*_continuous
, it fails to render any breaks.For example, the following does not work:
ggplot() + scale_x_continuous(limits = c(10,1))
But the following does work:
ggplot() + scale_x_continuous(limits = c(1,10))
The bug developed somewhere between version 3.4.3 and 3.5.1.
The text was updated successfully, but these errors were encountered: