ggp_dag: Plot a DAG with ggplot and node names with subscripts

Description Usage Arguments Details Value

View source: R/mod_dag_fct.R View source: R/ggp_dag.R

Description

Plot a DAG with ggplot and node names with subscripts.

Plot a DAG with ggplot and node names with subscripts.

Usage

1
2
3
ggp_dag(dag, layout = "sugiyama")

ggp_dag(dag, layout = "sugiyama")

Arguments

dag

A directed acyclic graph from the dagitty package

layout

String. Name of the layout. Default is "sugiyama".

Details

The DAG will be plotted using ggplot2 and the nodes' names can have subscript as in mathematical notations. See the source below for more details.

The DAG will be plotted using ggplot2 and the nodes' names can have subscript as in mathematical notations. See the source below for more details.

Value

ggplot object

ggplot object


FrankLef/ShinyTemp1 documentation built on Feb. 25, 2022, 12:23 p.m.