ggdag: Analyze and Create Elegant Directed Acyclic Graphs

Tidy, analyze, and plot directed acyclic graphs (DAGs). 'ggdag' is built on top of 'dagitty', an R package that uses the 'DAGitty' web tool (<>) for creating and analyzing DAGs. 'ggdag' makes it easy to tidy and plot 'dagitty' objects using 'ggplot2' and 'ggraph', as well as common analytic and graphical functions, such as determining adjustment sets and node relationships.

Version: 0.2.12
Depends: R (≥ 3.4.0)
Imports: dagitty, dplyr, forcats, ggplot2 (≥ 3.0.0), ggraph (≥ 2.0.0), ggrepel, igraph, magrittr, pillar, purrr, rlang, stringr, tibble, tidygraph
Suggests: covr, knitr, rmarkdown, spelling, testthat (≥ 3.0.0), vdiffr (≥ 1.0.2), withr
Published: 2024-03-08
DOI: 10.32614/CRAN.package.ggdag
Author: Malcolm Barrett ORCID iD [aut, cre]
Maintainer: Malcolm Barrett <malcolmbarrett at>
License: MIT + file LICENSE
NeedsCompilation: no
Language: en-US
Materials: README NEWS
CRAN checks: ggdag results


Reference manual: ggdag.pdf
Vignettes: Common Structures of Bias
An Introduction to Directed Acyclic Graphs
An Introduction to ggdag


Package source: ggdag_0.2.12.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): ggdag_0.2.12.tgz, r-oldrel (arm64): ggdag_0.2.12.tgz, r-release (x86_64): ggdag_0.2.12.tgz, r-oldrel (x86_64): ggdag_0.2.12.tgz
Old sources: ggdag archive

Reverse dependencies:

Reverse imports: causalPAF, CausalQueries, episensr
Reverse suggests: dagwood, mvGPS


Please use the canonical form to link to this page.