removeLocationAndThoseCloseToItFromAlternatives: Remove coordinates of alternative locations that are too...

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
removeLocationAndThoseCloseToItFromAlternatives(
  altXs,
  altYs,
  index,
  textHeight,
  textWidth,
  distances
)

Arguments

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

Value

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


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