Learn R Programming

dagR (version 1.1.1)

write.paths: Write the paths into a DAG drawing.

Description

This function writes the paths into a DAG drawing, using the symbols ('C', 'U', 'X', 'Y') used in the drawing, indicating directed arcs by '<' and="" '="">', undirected ones by '-'. Adjusted variables are under- and over-lined. If the paths have been evaluated using eval.paths, the status are also written.

Usage

write.paths(dag, px = 0.5, py = -0.06)

Arguments

dag
The DAG that has been drawn.
px
An x coordinate to change the position of the path writing.
py
A y coordinate to change the position of the path writing.

See Also

dag.draw, find.paths, eval.paths, dag.legend

Examples

Run this code
dag1<-demo.dag1();
dag.draw(dag1);
dag1a<-dag.adjust(dag1);
write.paths(dag1a);

Run the code above in your browser using DataLab