The function uses graphviz via DiagrammeR. For details on styling, refer to these.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Visualize(ahpTree, criteriaNodesStyle = list(style = "filled,rounded", shape =
"box", color = "honeydew4", fillcolor = "honeydew", penwidth = 4, fontname =
"helvetica", fontcolor = "black"), alternativeNodesStyle = list(style =
"filled,rounded", shape = "box", color = "thistle4", fillcolor = "thistle",
penwidth = 4, fontname = "helvetica"), criteriaEdgesStyle = list(arrowhead =
"vee", color = "grey35", penwidth = 2), alternativeEdgesStyle = list(dir =
"none", color = "grey35", penwidth = 2))
GetGraph(ahpTree, criteriaNodesStyle = list(style = "filled,rounded", shape =
"box", color = "honeydew4", fillcolor = "honeydew", penwidth = 4, fontname =
"helvetica"), alternativeNodesStyle = list(style = "filled,rounded", shape =
"box", color = "thistle4", fillcolor = "thistle", penwidth = 4, fontname =
"helvetica"), criteriaEdgesStyle = list(arrowhead = "vee", color = "grey35",
penwidth = 2), alternativeEdgesStyle = list(dir = "none", color = "grey35",
penwidth = 2))
|
ahpTree |
The tree to be drawn |
criteriaNodesStyle |
a list of graphviz / dot language styling elements |
alternativeNodesStyle |
a list of graphviz / dot language styling elements |
criteriaEdgesStyle |
a list of graphviz / dot language styling elements |
alternativeEdgesStyle |
a list of graphviz / dot language styling elements |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.