garrows {dagR}R Documentation

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 <lutz.breitling@gmail.com>

See Also

dag.draw, smoothArc

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);

[Package dagR version 1.1.3 Index]