-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Feature Request: Axis Text Warning or Automatic Rotation when Labels Overlap #3281
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
Comments
This is already being considered and will hopefully appear in the future |
Referencing #3322 as I'm working on this today as part of that project. The current strategies I think that I can build in to the current axis function relatively easily are (1) smart ordering of the labels and using |
@paleolimbot Have you thought about how you want the user to turn on or off/customize this? I think ideally it would be encapsulated into a new element type, so that it can be all customized by setting the appropriate element type and arguments in the theme. The reason why rotated labels are difficult is because we don't have enough parameters to specify how rotation should be performed. Just For an example of the need for more parameters, see the readme here: |
Right now there's no way to get any extra information to It's currently possible to get rotated axis labels looking good at any angle with a very complicated combo of |
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/ |
I sometimes work with data where the axis text may overlap, and it would be helpful if ggplot either warned when the axis text overlapped or even better could automatically adjust rotation and justification when overlap occurs.
Created on 2019-04-30 by the reprex package (v0.2.0).
The text was updated successfully, but these errors were encountered: