plot.dag: Plot a causal graph

View source: R/causalsim.R

plot.dagR Documentation

Plot a causal graph

Description

Uses ggdag to plot the graph of a DAG.

Usage

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

Arguments

x

a lower-triangular matrix representing a DAG. In constrast with other function, the 'x' argument must have class 'dag' and, so, must have been constructed with to_dag.

...

passed to ggdag.

Value

plots a causal graph with ggdag.


gmonette/causalsim documentation built on April 21, 2022, 1:40 a.m.