arrow_points: Calculate Arrow Head Points

View source: R/utils-geometry.R

arrow_pointsR Documentation

Calculate Arrow Head Points

Description

Calculate Arrow Head Points

Usage

arrow_points(x, y, angle, size, width = 0.5, x_scale = 1, y_scale = 1)

Arguments

x, y

Arrow tip position.

angle

Angle of incoming edge (radians).

size

Arrow size.

width

Arrow width ratio (default 0.5).

x_scale, y_scale

Aspect ratio correction factors.

Value

List with arrow polygon coordinates and midpoint for line connection.


cograph documentation built on April 1, 2026, 1:07 a.m.