simcausal (version 0.2.0)

plotDAG: Plot DAG

Description

Plot a DAG object using functions from igraph package.

Usage

plotDAG(DAG, tmax = NULL, xjitter, yjitter, node.action.color,
  vertex_attrs = list(), edge_attrs = list(), excludeattrs, customvlabs)

Arguments

DAG
A DAG object that was specified by calling set.DAG
tmax
Maximum time-point to plot for time-varying DAG objects
xjitter
Amount of random jitter for node x-axis plotting coordinates
yjitter
Amount of random jitter for node y-axis plotting coordinates
node.action.color
Color of the action node labels (only for action DAG of class DAG.action). If missing, defaults to red.
vertex_attrs
A named list of igraph graphical parameters for plotting DAG vertices. These parameters are passed on to add.vertices igraph function.
edge_attrs
A named list of igraph graphical parameters for plotting DAG edges. These parameters are passed on to add.edges igraph function.
excludeattrs
A character vector of attribute DAG nodes that shouldn't be plotted
customvlabs
A named vector of custom DAG node labels (replaces node names from the DAG object).