Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upLabel 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.xandlimits.yto 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: