-
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
Extend the range of recognised positional aesthetics #3168
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine, but I would recommend adding a news item that mentions this, since it could be a breaking change if somebody somewhere was using an x0
or y0
aesthetic in a non-position sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
By the way, these (what aesthetics are treated as positional) are the official spec of ggplot2? If so, I think it should be described in the docs (and I'll do it in a seperate PR). |
You can see the list of recognised position aesthetics in the construction of the continuous position scales... |
Yeah, but I still think it's nice to have it documented (and probably needs tests), though I have no idea where those developer-only documentaton should go (Extending ggplot2?)... |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
This PR extends the recognised positional aesthetics to include
x0
andy0
. This is needed for a range of geoms/stats in ggforce to make sure they play nice with scale transformations.x0
andy0
are traditionally used to denote center values and a natural fit for many parametrised geometries...Such a change has happened before in c9f276b so it should be fairly safe