Learn R Programming

dagR (version 1.1.1)

dag.legend: Write the legend in a DAG drawing.

Description

Lists the DAG symbols along with their names/labels below a DAG drawn.

Usage

dag.legend(dag, lx = -0.15, ly = -0.075)

Arguments

dag
The DAG for which the legend is needed.
lx
X coordinate for repositioning legend.
ly
Y coordinate for repositioning legend.

See Also

dag.draw, write.paths

Examples

Run this code
dag.draw(demo.dag1(), legend=FALSE);
dag.legend(demo.dag1(), lx=0.2, ly=0.01);

Run the code above in your browser using DataLab