-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Clarify geom_label documentation #2782
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
Conversation
Non-support of ‘angle aesthetic’ rather than ‘rot parameter’
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.
Nice catch! rot
is the name of the argument to grid::textGrob()
that angle
informs internally but this wouldn't be clear to most users. Thanks!
Can you rebuild the documentation and commit the new .Rd file please ? Then we are good to merge. |
I'm all for fixing the documentation so it agrees with what the code does and I support this PR. However, maybe we should also think about adding the ability to rotate labels? Shouldn't be that hard. |
Thanks @clauswilke. Shall I create a separate issue for this? |
When I run I've only committed the relevant lines of |
It does! The new version of roxygen should be on CRAN soon. |
Thanks @batpigandme. I've installed the latest version via Still my little change should be fine as I've only committed the relevant lines. |
I'll make an issue for improvements in |
Issue filed (#2785). |
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/ |
Specify non-support of '
angle
aesthetic' rather than 'rot
parameter', as this is clearer.It is indeed the case that the
angle
aesthetic isn't supported. You can see below thatgeom_text
is rotated butgeom_label
isn't, despite the same aesthetics. Perhaps it's worth adding a warning if you try to use theangle
aesthetic withgeom_label
, although I'm less sure how you'd go about this.Do I need to render the file for the
man/
directory?Created on 2018-07-27 by the reprex
package (v0.2.0).