Last chance! 50% off unlimited learning
Sale ends in
Return univariate plotting positions in which neighboring points are separated, if and as necessary, so that they are the specified minimum distance apart.
bounce(y, d, log = FALSE)
A vector of values such that, when plotted along a line, neighboring points are the required minimum distance apart.
A numeric vector of plotting positions
Minimum required distance between neighboring positions
TRUE
if values are will be plotted on a logarithmic scale.
John Maindonald
The centroid(s) of groups of points that are moved relative to each other remain the same.
See also onewayPlot
bounce(c(4, 1.8, 2, 6), d=.4)
bounce(c(4, 1.8, 2, 6), d=.1, log=TRUE)
Run the code above in your browser using DataLab