Learn R Programming

ggarchery (version 0.4.4)

split_arrows: Find where to place arrows

Description

Find where to place arrows

Usage

split_arrows(x, xend, y, yend, splits)

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.

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