Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

garrows

Draw a directed arc in a DAG.


Description

Internally called by dag.draw for drawing directed arcs.

Usage

garrows(x0, y0, x1, y1, xgap, ygap, len = 0.1)

Arguments

x0

X coordinate of origin.

y0

Y coordinate of origin.

x1

X coordinate of target node.

y1

Y coordinate of target node.

xgap

Space between node and arc ends on x axis.

ygap

Space between node and arc ends on y axis.

len

Length of arrow whiskers (default=0.1).

Author(s)

Lutz P Breitling <l.breitling@posteo.de>

See Also

Examples

dag.draw(demo.dag1());
garrows(0,0, 0.5, 0.5, xgap=0.1, ygap=0.1, len=0.1);
garrows(0,0, 0.5, 0.6, xgap=0.1, ygap=0.1, len=0.3);
garrows(0,0, 0.5, 0.6, xgap=0.01, ygap=0.1, len=0.3);

dagR

R Functions for Directed Acyclic Graphs

v1.2.0
GPL-2
Authors
Lutz P Breitling
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.