| draw_straight_edge_base | R Documentation |
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
)
x1, y1 |
Start point coordinates. |
x2, y2 |
End point coordinates. |
col |
Edge color. |
lwd |
Line width. |
lty |
Line type. |
arrow |
Logical: draw arrow at target? |
asize |
Arrow size. |
bidirectional |
Logical: draw arrow at source too? |
start_lty |
Line type for start segment. 1=solid (default), 2=dashed, 3=dotted. |
start_fraction |
Fraction of edge length for start segment (0-0.5). Default 0. |
arrow_angle |
Arrow head angle in radians. Default pi/6 (30 degrees). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.