addLineBackToOriginalLocation: Plot line from new alternative location back to original

Description Usage Arguments

View source: R/addNonOverlappingTestLabelsOrPoints.R

Description

Function used by addTextLabels() and addPoints()

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
addLineBackToOriginalLocation(
  altX,
  altY,
  x,
  y,
  label,
  cex,
  col,
  lty,
  lwd,
  heightPad,
  widthPad
)

Arguments

altX

The X coordinate of new location

altY

The Y coordinate of new location

x

The X coordinate of original location

y

The Y coordinate of original location

label

The label to be plotted. Required to work out when line ends

cex

The number used to scale the size of the label. Required to work out when line ends

col

Colour of line to be plotted

lty

A number detailing the type of line to be plotted. 0: blank, 1: solid, 2: dashed, 3: dotted, 4: dotdash, 5: longdash, and 6: twodash.

lwd

A number to scale the size of plotted line.

heightPad

Multiplyer for label height should added to label to be used to pad height

widthPad

Multiplyer for label width should added to label to be used to pad width


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