shorten_edge_for_arrow: Calculate Shortened Edge Endpoint

View source: R/splot-arrows.R

shorten_edge_for_arrowR Documentation

Calculate Shortened Edge Endpoint

Description

Calculates where to stop drawing an edge line so the arrow head doesn't overlap with the line.

Usage

shorten_edge_for_arrow(x1, y1, x2, y2, arrow_size)

Arguments

x1, y1

Start point.

x2, y2

End point (arrow tip).

arrow_size

Arrow size.

Value

List with x, y coordinates of shortened endpoint.


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