Skip to content

ggdag

0.2.13Package record

Analyze and Create Elegant Directed Acyclic Graphs

4packages dependsuggested by 9
114.8Kdownloads / year
57.6%test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 4.9 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.2.13
READMEYes · 157 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 0.2.13Citation fileNoWebsiteYes · pkgdown
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

114.8K
CRAN downloads in the past year
Rank #1,255 · ~315/day · ~9.6K/mo
Daily download trend is not available in this view yet.
8.7K30 days
24.5K90 days
114.8K1 year
Compare downloads with other packages →
Also on371 r2u1 autocran1.4K conda_forge160 c2d4u

Repository

466Stars
27Forks
17Open issues
1Open PRs
15Releases
722Commits
6Commit identities
rrstatscausal-inferenceggplot-extensiondag
722 commits · Last activity 2026-09-01 · 0% stars, 30d · Default branch at 0.2.13.9000, ahead of CRAN 0.2.13 (checked 2026-10-25)
Responsiveness
How these are sampled
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

2025-10-14 · 4512026-08-31 · 466
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Funding

Funding links: GitHub Sponsors, paypal.me

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-09-01 · The repository has a site deploy workflow

pkgdown site last built 2026-09-01

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 1 practice
Lint, format, editor (4)
Lint workflowAirVS CodeRStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2025-08-10
    Named in .Rbuildignore: .claude, CLAUDE.md
    Named in .gitignore: .claude, CLAUDE.md
  • GitHub Copilotfirst seen 2025-08-10
    Pull request: opened by its own account
    Commits: 12 by its own account
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.4.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
4direct
2indirect
Imports 4
Suggested by 9
Show all 13 packagesHide all 13 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.1.0 (2018)
Releases (15)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.2.13Latest
    record
    2024-07-22 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.12
    record
    2024-03-08 · diff ↗
  • 0.2.11
    record
    2024-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.10
    record
    2023-05-29 · diff ↗
  • 0.2.9
    record
    2023-05-22 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.8
    record
    2023-03-17 · diff ↗ ·
    added 1 export
    time_ordered_coords
  • 0.2.7
    record
    2022-10-29 · diff ↗
  • 0.2.6
    record
    2022-08-26 · diff ↗
  • 0.2.5
    record
    2022-07-16 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.4
    record
    2021-10-10 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
Show 9 earlier eventsHide 9 earlier events
  • 0.2.3
    record
    2021-01-12 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.2.2
    record
    2020-02-13 · diff ↗ ·
    removed 1 export
    expand_scale
  • 0.2.1
    record
    2019-12-06 · diff ↗
  • 0.2.0
    record
    2019-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
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.0
    record
    2018-03-27
  • R
    R 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
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("ggdag")
Barrett, M. (2024). ggdag: Analyze and Create Elegant Directed Acyclic Graphs (Version 0.2.13) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ggdag version 0.2.13 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy