dag_diagrammer {causact}R Documentation

The graph object should be of class causact_graph and created using dag_create().

Description

The graph object should be of class causact_graph and created using dag_create().

Usage

dag_diagrammer(graph, wrapWidth = 24, shortLabel = FALSE)

Arguments

graph

a graph object of class causact_graph created using dag_create().

wrapWidth

a required character label that describes the node.

shortLabel

a longer more descriptive character label for the node.

Value

a graph object of class dgr_graph. Useful for further customizing graph displays using the DiagrammeR package.

Examples

library("DiagrammeR")
dag_create() %>%
dag_node("Get Card","y",
         rhs = bernoulli(theta),
         data = carModelDF$getCard) %>%
  dag_diagrammer() %>%
  render_graph(title = "DiagrammeR Version of causact_graph")

[Package causact version 0.4.0 Index]