plot.dagRdag: Function to draw a DAG

View source: R/plot.dagRdag.R

plot.dagRdagR Documentation

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.
Breitling LP, Duan C, Dragomir AD, Luta G (2022). Using dagR to identify minimal sufficient adjustment sets and to simulate data based on directed acyclic graphs. Int J Epidemiol 50(6):1772-1777.

See Also

dag.draw


dagR documentation built on Oct. 9, 2022, 5:06 p.m.