View source: R/addNonOverlappingTestLabelsOrPoints.R
Function used by addTextLabels()
and addPoints()
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
)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.