Description Usage Arguments Value
View source: R/addNonOverlappingTestLabelsOrPoints.R
Function used by addTextLabels()
and addPoints()
1 2 3 4 5 6 7 8 9 | chooseNewLocation(
pointInfo,
index,
alternativeLocations,
distances,
plottedLabelInfo,
axisLimits,
keepLabelsInside
)
|
pointInfo |
A list storing the information for the input points |
index |
The index of the point of interest |
alternativeLocations |
The coordinates of the alternative locations |
distances |
The distances between the alternative locations and the input points |
plottedLabelInfo |
The coordinates and label information about the locations where a label has already plotted |
axisLimits |
The limits of the X and Y axis: ( |
keepLabelsInside |
A logical variable indicating whether the labels shouldn't be plotted outside of plotting region |
Returns the index of the chosen alternative location
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.