Description Usage Arguments Value
View source: R/addNonOverlappingTestLabelsOrPoints.R
Function used by addTextLabels()
and addPoints()
1 2 3 4 5 6 7 8 | removeLocationAndThoseCloseToItFromAlternatives(
altXs,
altYs,
index,
textHeight,
textWidth,
distances
)
|
altXs |
A vector of X coordinates for alternative locations |
altYs |
A vector of Y coordinates for alternative locations |
index |
The index of the point of interest in the coordinate vectors |
textHeight |
The height of the label to be plotted at the point of interest |
textWidth |
The width of the label to be plotted at the point of interest |
distances |
The distances between the actual and alternative locations |
Returns a list of the coordinates of the alternative locations that weren't too close and the distance matrix of the alternate locations to the actual locations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.