split_arrows {ggarchery} | R Documentation |
Find where to place arrows
Description
Find where to place arrows
Usage
split_arrows(x, xend, y, yend, splits)
Arguments
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 |
Value
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.
[Package ggarchery version 0.4.3 Index]