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

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 '-'. Since version 1.1.2, alt.symb allow usage of custom node symbols, though multi-character symbols will not be formatted well. 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, alt.symb = TRUE)

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.

alt.symb

Boolean indicating if alternative node symbols (dag$symbols) should be used.

Author(s)

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

See Also

Examples

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

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.