A thin wrapper to convert tidy_dagitty and dagitty objects to
tbl_graph, which can then be used to work in tidygraph and
ggraph directly. See tidygraph::as_tbl_graph().
Usage
# S3 method for tidy_dagitty
as_tbl_graph(x, directed = TRUE, ...)
# S3 method for dagitty
as_tbl_graph(x, directed = TRUE, ...)
Arguments
x
an object of class tidy_dagitty or dagitty
directed
logical. Should the constructed graph be directed? Default
is TRUE