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

plot.dagRdag

Function to draw a DAG


Description

Generic function to draw a directed acyclic graph in an object of class dagRdag. This essentially passes the DAG object to the function dag.draw, which is maintained for backwards compatibility.

Usage

## S3 method for class 'dagRdag'
plot(x, y, ...)

Arguments

x

Object of class dagRdag to be passed to dag.draw.

y

Currently not used.

...

Other arguments to be passed to dag.draw.

Details

For all available arguments, see documentation of dag.draw.

Value

The DAG object is returned.

Author(s)

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

References

Breitling LP (2010). dagR: a suite of R functions for directed acyclic graphs. Epidemiology 21(4):586-587.

See Also

Examples

plot(demo.dag1());
plot(demo.dag3(), legend=FALSE);

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.