chooseNewLocation: A function to choose (from the alternative locations) a new...

Description Usage Arguments Value

View source: R/addNonOverlappingTestLabelsOrPoints.R

Description

Function used by addTextLabels() and addPoints()

Usage

1
2
3
4
5
6
7
8
9
chooseNewLocation(
  pointInfo,
  index,
  alternativeLocations,
  distances,
  plottedLabelInfo,
  axisLimits,
  keepLabelsInside
)

Arguments

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: (c(xMin, xMax, yMin, yMax))

keepLabelsInside

A logical variable indicating whether the labels shouldn't be plotted outside of plotting region

Value

Returns the index of the chosen alternative location


JosephCrispell/plotteR documentation built on June 6, 2021, 7:24 p.m.