ggdag
ggdag is an R package designed for the visualization of directed acyclic graphs (DAGs). It leverages the ggplot2 framework to create aesthetically pleasing and informative DAG plots, commonly used in causal inference and statistical modeling. The package allows users to specify nodes and edges of a DAG, and then renders them using ggplot2's grammar of graphics. This enables customization of node shapes, colors, and labels, as well as edge styles and arrowheads.
Key features of ggdag include the ability to represent causal relationships, identify confounding variables, and illustrate