thigmophobe.Rd
Find the direction away from the closest point
Numeric data vectors. Typically the x/y coordinates of plotted points. If arrays are passed, they will be silently coerced to numeric vectors.
Names for the vector of directions.
Flags for logarithmic axes. See Note.
The extent of the plot in user units.
Extent of the plot in inches.
smallest number that can be represented on the system.
value of pi.
thigmophobe returns the direction (as 1|2|3|4 - see pos= in text) away from the nearest point to each of the points described by x and y.
thigmophobe is typically used to get the offsets to automatically place labels on a scatterplot or similar using thigmophobe.labels to avoid overlapping labels. The name means "one who fears being touched".
The plot.span, xlog and ylog arguments were added to allow thigmophobe to be used outside of base graphics.
A vector of directions away from the point nearest to each point.