-
-
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
Label limits #67
Label limits #67
Conversation
This is great! I have a few requests before I merge this into the master branch:
Please paste this code into the
|
Have a look now, I think this ticks off everything on your TODO list. |
Great work, thank you! I just made some minor changes and merged your commit. You're now a contributor 👍 |
Thanks! And hehe, was not expecting to appear in the description. :) |
This originated with slowkow#67. The xlim and ylim did not have defaults. This wasn't picked up in the package itself because these defaults were provided in the `geom_*_repel()` functions. If a function is provided that doesn't explicitly set xlim and ylim, the ggproto goes into an infinite loop.
Implements custom limits for label limits as discussed in #66 .
Takes the parameters
limits.x
andlimits.y
to be a vector with two elements, the first one being the lower limit, and the other one being the higher one.The vectors are in data coordinates.
NAs in the vector are replaced to the image lower or upper bounds respectively.
Usage example:
Result: