View source: R/geom-arrowsegment.R
split_arrows | R Documentation |
Find where to place arrows
split_arrows(x, xend, y, yend, splits)
x , xend , y , yend |
The coordinates of the start and end of the segment |
splits |
A vector of points between 0 and 1 determining where on the line between start and end to split the segment into sub-segments, which will each receive an arrowhead |
A data frame describing the start and end coordinates of the sub-segments. The final segment, ending in 1, is not given (and not given an arrowhead) unless the final element of splits
is 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.