plot.dagRdag {dagR} | R 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 |
y |
Currently not used. |
... |
Other arguments to be passed to |
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
[Package dagR version 1.2.1 Index]