gg_dag: Plot DAGs simply

Description Usage Arguments Examples

View source: R/dags.R

Description

Create a simple ggplot displaying a DAG created with dagitt::dagitty or ggdag::dagify().

Usage

1
gg_dag(dag, size = 7, highlight = "U")

Arguments

dag

a DAG

size

size of the nodes

highlight

a vector of names of nodes to display in a highlighted color

Examples

1
2
ggdag::dagify(A ~ B + C, B ~ C, D ~ C) %>%
 gg_dag(highlight = c("B", "C"), size = 9 )

rpruim/CalvinBayes documentation built on April 12, 2021, 1:49 p.m.