ggdag0.2.13 package

Analyze and Create Elegant Directed Acyclic Graphs

label

DAG labels

node_point

DAG Nodes

is_confounder

Assess if a variable confounds a relationship

is.tidy_dagitty

Test for object class for tidy_dagitty

instrumental

Find Instrumental Variables

activate_collider_paths

Activate paths opened by stratifying on a collider

adjustment_sets

Covariate Adjustment Sets

as_tbl_graph

Convert DAGS to tidygraph

ggdag-package

ggdag: Analyze and Create Elegant Directed Acyclic Graphs

as_tidy_dagitty

Convert objects into tidy_dagitty objects

as.data.frame.tidy_dagitty

Convert a tidy_dagitty object to data.frame

as.tbl.tidy_daggity

Convert a tidy_dagitty object to tbl

canonicalize

Canonicalize a DAG

colliders

Find colliders

is_collider

Detecting colliders in DAGs

control_for

Adjust for variables and activate any biasing paths that result

coordinates

Manipulate DAG coordinates

d_relationship

D-relationship between variables

dag

Create a dagitty DAG

dagify

Create a dagitty DAG using R-like syntax

dplyr

Dplyr verb methods for tidy_dagitty objects

ggdag

Quickly plot a DAG in ggplot2

equivalent

Generating Equivalent Models

exogenous

Find Exogenous Variables

expand_plot

Quickly scale the size of a ggplot

fortify

Fortify a tidy_dagitty object for ggplot2

geom_dag_collider_edges

Edges for paths activated by stratification on colliders

geom_dag_edge_functions

Directed DAG edges

geom_dag_edges

Directed and bidirected DAG edges

geom_dag_label

Node text labels

geom_dag_text

Node text

ggdag_classic

Quickly plot a DAG in ggplot2

ggplot.tidy_dagitty

Create a new ggplot

paths

Find Open Paths Between Variables

pipe

Pipe operator

print.tidy_dagitty

Print a tidy_dagitty

pull_dag

Pull components from DAG objects

quick_plot

Quickly create a DAGs with common structures of bias

reexports

Objects exported from other packages

remove_axes

Quickly remove plot axes and grids

repel

Repulsive textual annotations

scale_adjusted

Common scale adjustments for DAGs

simulate_data

Simulate Data from Structural Equation Model

status

Find variable status

tbl_df.tidy_daggity

Convert a tidy_dagitty object to tbl_df

theme_dag_blank

Minimalist DAG themes

theme_dag_grey

Simple grey themes for DAGs

tidy_dagitty

Tidy a dagitty object

time_ordered_coords

Create a time-ordered coordinate data frame

variable_family

Familial relationships between variables

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.

  • Maintainer: Malcolm Barrett
  • License: MIT + file LICENSE
  • Last published: 2024-07-22