
Last chance! 50% off unlimited learning
Sale ends in
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(x,y)
thigmophobe.labels
to avoid
overlapping labels. The name means "one who fears being touched".thigmophobe.labels
x<-rnorm(10)
y<-rnorm(10)
thigmophobe(x,y)
Run the code above in your browser using DataLab