dag_diagrammer {causact} | R Documentation |
Convert graph to Diagrammer object for visualization
Description
Convert a causact_graph
to a DiagrammeR
object for visualization.
Usage
dag_diagrammer(
graph,
wrapWidth = 24,
shortLabel = FALSE,
fillColor = "aliceblue",
fillColorObs = "cadetblue"
)
Arguments
graph |
a graph object of class |
wrapWidth |
a required character label that describes the node. |
shortLabel |
a longer more descriptive character label for the node. |
fillColor |
a valid R color to be used as the default node fill color. |
fillColorObs |
a valid R color to be used as the fill color for observed nodes. |
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.5.5 Index]