View source: R/render_causal_net.R
render_causal_net | R Documentation |
Renders a Causal net as graph
render_causal_net(
causal_net,
rankdir = "LR",
layout = "dot",
render = T,
fixed_edge_width = F,
fixed_node_pos = NULL,
...
)
causal_net |
A causal net created by |
rankdir |
Rankdir to be used for DiagrammeR. |
layout |
Layout to be used for DiagrammeR. |
render |
Whether to directly render the DiagrammeR graph or simply return it. |
fixed_edge_width |
If TRUE, don't vary the width of edges. |
fixed_node_pos |
When specified as a data.frame with three columns 'act', 'x', and 'y' the position of nodes is fixed. Note that his can only be used with the 'neato' layout engine. |
... |
Further parameters forwarded to the DiagrammeR render function. |
A DiagrammeR graph of the Causal net.
render_causal_net(causal_net(L_heur_1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.