Given a cluster structure determined by
ICLUST, create dot code to describe the
ICLUST output. To use the dot code, use either https://www.graphviz.org/ Graphviz or a commercial viewer (e.g., OmniGraffle). This function parallels
ICLUST.rgraph which uses Rgraphviz.
ICLUST.graph(ic.results, out.file,min.size=1, short = FALSE,labels=NULL, size = c(8, 6), node.font = c("Helvetica", 14), edge.font = c("Helvetica", 12), rank.direction=c("RL","TB","LR","BT"), digits = 2, title = "ICLUST", ...)
Output is a set of dot commands written either to console or to the output file. These commands may then be used as input to any "dot" viewer, e.g., Graphviz.
output list from ICLUST
name of output file (defaults to console)
draw a smaller node (without all the information) for clusters < min.size -- useful for large problems
if short==TRUE, don't use variable names
vector of text labels (contents) for the variables
size of output
Font to use for nodes in the graph
Font to use for the labels of the arrows (edges)
LR or RL
number of digits to show
other options to pass
Will create (or overwrite) an output file and print out the dot code to show a cluster structure. This dot file may be imported directly into a dot viewer (e.g., https://www.graphviz.org/). The "dot" language is a powerful graphic description language that is particulary appropriate for viewing cluster output. Commercial graphics programs (e.g., OmniGraffle) can also read (and clean up) dot files.
ICLUST.graph takes the output from
ICLUST results and processes it to provide a pretty picture of the results. Original variables shown as rectangles and ordered on the left hand side (if rank direction is RL) of the graph. Clusters are drawn as ellipses and include the alpha, beta, and size of the cluster. Edges show the cluster intercorrelations.
It is possible to trim the output to not show all cluster information. Clusters < min.size are shown as small ovals without alpha, beta, and size information.
Although it would be nice to process the dot code directly in R, the Rgraphviz package is difficult to use on all platforms and thus the dot code is written directly.