R/old-scripts/process_diagram.R

grViz("
  digraph CFA {
    # Multiple level nodes

    # # Terminal branch nodes
    node [shape = ellipse, color = Drakgreen]
    a [label = '@@1']

    node [shape = circle, color=CornflowerBlue]
   b [label = '@@2'];
    c [label = '@@3'];
    {rank = same; b; c}

    # Terminal branch nodes
    node [shape = box, color = Crimson]
    d [label = '@@4'];

    # Connect nodes with edges and labels
    a -> b
    a -> c
    b -> d
    c -> d
    b->c
    c->b
  }

[1]: 'Stoats'
[2]: 'Rats'
[3]: 'Mice'
[4]: 'Beech seed'
")
davan690/beech-publication-wr documentation built on March 29, 2020, 11:09 a.m.