TreeGraph
A function to produce the data structure needed to plot Event and Staged trees using RGraphviz
.
TreeGraph(tree, solution = list(), name = c(), range.color = 1)
tree
: Event.tree S4 object
solution
: list with two components:
name
: vector of strings - variable names
range.color
: (numeric) - it chooses the palette. If 1, it is used a 8-color palette. If 2, it is used a 501-color palette.
list:
$node - node attributes
$edge - edge attributes