View source: R/position-attractsegment.R
attract_proportionally | R Documentation |
Move points towards each other a proportion of the distance between them
attract_proportionally(x, xend, y, yend, prop_start, prop_end)
x , xend , y , yend |
The coordinates of the start and end of the segment |
prop_start , prop_end |
How much (proportionally) to take off the start and end of the line |
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.