render_causal_net: Renders a Causal net as graph

View source: R/render_causal_net.R

render_causal_netR Documentation

Renders a Causal net as graph

Description

Renders a Causal net as graph

Usage

render_causal_net(
  causal_net,
  rankdir = "LR",
  layout = "dot",
  render = T,
  fixed_edge_width = F,
  fixed_node_pos = NULL,
  ...
)

Arguments

causal_net

A causal net created by causal_net

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.

Value

A DiagrammeR graph of the Causal net.

Examples

render_causal_net(causal_net(L_heur_1))


heuristicsmineR documentation built on April 4, 2023, 5:11 p.m.