Learn R Programming

LSTbook (version 0.6)

dag_draw: Draw a DAG

Description

Make a simple drawing of a Directed Acyclic Graph as constructed by datasim_make.

Usage

dag_draw(DAG, ..., report_hidden = FALSE)

Value

No return value. Called for graphics side-effects.

Arguments

DAG

The DAG to draw

report_hidden

logical. If TRUE, show the hidden nodes.

...

Additional arguments to plot.igraph()

Details

See the igraph package for more details.

By default, edges are not drawn to hidden nodes, that is, those whose names begin with a dot. To show the hidden nodes, use the argument show_hidden=TRUE.

Examples

Run this code
dag_draw(sim_03)

Run the code above in your browser using DataLab