powered by
Moves points that are close together
JitterPosition(x, y, jitterDefault = 0.01, Near = 0.045)
The x-coordinates of the points
The y-coordinates of the points
A positive number controlling the maximum jitter
A positive number controlling the definition of "near"
A list giving the new x and y coordinates, and, for each point, its number neighbours and a suggested relative size for the plotting symbol
This function is for internal usage only.
# NOT RUN { JitterPosition(c(1:5,2,2,4,4,4),c(1:5,2,2,4,4,4)) # }
Run the code above in your browser using DataLab