ggdag
0.2.13Analyze 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
- OK2026-06-2113 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-2012 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-3114 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-03-3013 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-2814 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
- ERROR2026-03-2513 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 89%
- Return-value docs
- 63%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
7 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/r-causal/ggdag on 2026-07-19.
Show all practices
Dependencies
Code & Tests
- Cyclomatic complexity
- 1.0 median / 9 max
- Test cases
- 41 / 1.78 per code line
Test coverage
Line coverage
58%
Expression
60.4%
Tests / Examples
57.6% / 71% ex
Functions
186 95 exported
Complexity
2.2 avg / 9 max
Call network
186 nodes / 409 edges
Call graph
Open call graph →Lowest coverage
186 functions| Function | Cyclo | Coverage |
|---|---|---|
| collider_triangle exp | 3 | 0% |
| confounder_triangle exp | 3 | 0% |
| geom_dag_edges_diagonal exp | 3 | 0% |
| geom_dag_node exp | 1 | 0% |
| ggdag_adjacent exp | 5 | 0% |
| ggdag_adjust exp | 9 | 0% |
People & History
15 releases. Pick two to compare their code metrics. R releases are shown for context.
- 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 ↗
- 0.2.102023-05-29 · diff ↗
- 0.2.92023-05-22 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.2.82023-03-17 · diff ↗
- 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
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
- Installed size
- not tracked yet
- With dependencies
- not tracked yet