split_arrows: Find where to place arrows

View source: R/geom-arrowsegment.R

split_arrowsR 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.


ggarchery documentation built on May 29, 2024, 10:27 a.m.