View source: R/position-attractsegment.R
attract_by_distance | R Documentation |
Move points towards each other an absolute distance
attract_by_distance(x, xend, y, yend, length_start, length_end)
x , xend , y , yend |
The coordinates of the start and end of the segment |
length_start , length_end |
How much to take off the start and end of the line (in the units of the data; beware this can make little sense unless both axes have the same units) |
A named list of new coordinates for the start and end of the line
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.