bounce: Separate plotting positions for labels, to avoid overlap
Description
Return univariate plotting positions in which neighboring points are
separated, if and as necessary, so that they are the specified minimum
distance apart.
Usage
bounce(y, d, log = FALSE)
Value
A vector of values such that, when plotted along a line, neighboring
points are the required minimum distance apart.
Arguments
y
A numeric vector of plotting positions
d
Minimum required distance between neighboring positions
log
TRUE if values are will be plotted on a logarithmic scale.
Author
John Maindonald
Details
The centroid(s) of groups of points that are moved relative to each
other remain the same.