Analyze and Create Elegant Directed Acyclic Graphs
Overview
Tidy, analyze, and plot directed acyclic graphs (DAGs). 'ggdag' is built on top of 'dagitty', an R package that uses the 'DAGitty' web tool (https://dagitty.net/) 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.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-21
- ERROR12 OK, 1 ERROR2026-06-20
- OK14 OK2026-03-31
Show 4 earlier changesHide 4 earlier changes
- ERROR13 OK, 1 ERROR2026-03-30
- OK14 OK2026-03-28
- ERROR13 OK, 1 ERROR2026-03-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 50 (3 internal)includes a package overview page
- Examples that run
- 100%38 run in a plain check
- Exported functions with examples
- 86%
- Documented parameters
- 89%
- Return-value docs
- 63%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 98%
- Median days to close, 50 most recently updated closed issues
- 225
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
12 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/r-causal/ggdag on 2026-10-25.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-01 · The repository has a site deploy workflow
pkgdown site last built 2026-09-01
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2025-08-10Named in .Rbuildignore: .claude, CLAUDE.mdNamed in .gitignore: .claude, CLAUDE.md
- GitHub Copilotfirst seen 2025-08-10Pull request: opened by its own accountCommits: 12 by its own account
Dependencies
Installing ggdag adds 51 packages (32 with compiled code, 50 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, igraph 4.8 MB.
Show all 13 packagesHide all 13 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.2.13Latest
- RR 4.4.0 released · 2024-04-24
- 0.2.122024-03-08 · diff ↗
- 0.2.112024-01-24 · diff ↗ ·
added 7 exports
update_dag<-, update_dag_data<-, as_tidy_dagitty, geom_dag_label, pull_dag, pull_dag_data, update_dag - 0.2.102023-05-29 · diff ↗
- 0.2.92023-05-22 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.2.8
- 0.2.72022-10-29 · diff ↗
- 0.2.62022-08-26 · diff ↗
- 0.2.52022-07-16 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.2.42021-10-10 · diff ↗
- RR 4.1.0 released · 2021-05-18
Show 9 earlier eventsHide 9 earlier events
- 0.2.32021-01-12 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.2.2
- 0.2.12019-12-06 · diff ↗
- 0.2.02019-09-12 · diff ↗ ·
added 8 exports
adjust_for, expand_plot, remove_axes, remove_grid, scale_adjusted, theme_dag_gray_grid, theme_dag_grey_grid, theme_dag_grid - RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 0.1.02018-03-27
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2018-03-27
- Total releases
- 15 / 8 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 1.9 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ggdag")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.