-
Notifications
You must be signed in to change notification settings - Fork 10
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
Enhance action "spread"
in position_nudge_to()
#6
Comments
position_repulse()
and position_spread()
as two position functions for the future
position_repulse()
and position_spread()
as two position functions for the future"repulse"
in position_nudge_to()
No new position functions are needed for this, so I changed the title. Action |
Action |
"repulse"
in position_nudge_to()
"spread"
in position_nudge_to()
Some investigation suggests that This needs quite a bit of thought as most likely user passed functions will need additional arguments. A different approach using more formal arguments would to have
|
Using At this point, I set this issue back to on hold for the implementation of a different strategy. Alternatively, functions could be accepted as arguments to
|
This is a note about something to consider in the future. In 'ggrepel' repulsion is applied during rendering, so it tracks changes in plot size. This is advantageous in some respects, but means that repulsion will result in different plot layouts depending on the graphical device and
width
andheight
parameters passed to it. A different compromise solution is to apply the repulsion with a position function.While
position_repulse()
would depend on a random shift component,position_spread()
would work deterministically.The text was updated successfully, but these errors were encountered: