-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Feature Request: Allow sorting of labels? #201
Comments
This can be solved using nudging. Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
It would be nice to have control of the ordering of labels.
Minimal code example
Related to issue #200 that I filed today. It would be neat to order the boxes in decreasing or ascending order from left to right, bottom to top. I.e. now the order depends on the seed but would it be possible to have a logical order?
Created on 2021-07-14 by the reprex package (v1.0.0)
A potentially more insightful example is this one. Here I would like to order the boxes from top to bottom in the same order as they appear in time (along the x axis). Basically, every time ggrepel needs to place a label in a lower row, please you first the remaining one with the lowest x value before trying one with a higher x value.
Suggestions
Not sure it easy to solve since the boxes are placed in random order (I assume), one by one. But that could be also the point to start with. First place box 1, afterwards box 2 and so on.
Version information
The text was updated successfully, but these errors were encountered: