Rdocumentation
powered by
Learn R Programming
ggrepel (version 0.4)
repel_force: Compute the repulsion force upon point
a
from point
b
.
Description
The force decays with the squared distance between the points, similar to the force of repulsion between magnets.
Usage
repel_force(a, b, force = 1e-06)
Arguments
a
A point like
c(x, y)
b
A point like
c(x, y)
force
Magnitude of the force (defaults to
1e-6
)