Convert a DAG to a formatted string that can be used to create DAGs with ggdag using its formula-based input method.

from_dagitty_to_ggdag(dag)

Arguments

dag

A textual description of a DAG that can be read by the dagitty function. A string.

Value

A formatted string.