Learn R Programming

ahp (version 0.2.12)

Visualize: Draw a diagram of the AHP tree.

Description

The function uses graphviz via DiagrammeR. For details on styling, refer to these.

Usage

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))

Arguments

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