Renders a straight edge between two points with optional arrow.
draw_straight_edge_base(
x1,
y1,
x2,
y2,
col = "gray50",
lwd = 1,
lty = 1,
arrow = TRUE,
asize = 0.02,
bidirectional = FALSE,
start_lty = 1,
start_fraction = 0,
arrow_angle = pi/6
)Start point coordinates.
End point coordinates.
Edge color.
Line width.
Line type.
Logical: draw arrow at target?
Arrow size.
Logical: draw arrow at source too?
Line type for start segment. 1=solid (default), 2=dashed, 3=dotted.
Fraction of edge length for start segment (0-0.5). Default 0.
Arrow head angle in radians. Default pi/6 (30 degrees).