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

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, alt.symb = TRUE)

Arguments

dag

The DAG for which the legend is needed.

lx

X coordinate for repositioning legend.

ly

Y coordinate for repositioning legend.

alt.symb

Boolean indicating if the alternative node symbols (dag$symbols) should be used. Note that the formatting is not changed, i.e. longer symbols will not be formatted nicely.

Author(s)

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

See Also

Examples

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

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.