Learn R Programming

psych (version 1.0-97)

iclust.diagram: Draw an ICLUST hierarchical cluster structure diagram

Description

Given a cluster structure determined by ICLUST, create a graphic structural diagram using graphic functions in the psych package To create dot code to describe the ICLUST output with more precision, use ICLUST.graph. If Rgraphviz has been successfully installed, the alternative is to use ICLUST.rgraph.

Usage

iclust.diagram(ic, labels = NULL, short = FALSE, digits = 2, cex = NULL, min.size = NULL, e.size =1,colors=c("black","blue"), main = "ICLUST diagram")

Arguments

ic
Output from ICLUST
labels
labels for variables (if not specified as rownames in the ICLUST output
short
if short=TRUE, variable names are replaced with Vn
digits
Round the path coefficients to digits accuracy
cex
The standard graphic control parameter for font size modifications. This can be used to make the labels bigger or smaller than the default values.
min.size
Don't provide statistics for clusters less than min.size
e.size
size of the ellipses with the cluster statistics.
colors
postive and negative
main
The main graphic title

Value

  • Graphical output summarizing the hierarchical cluster structure. The graph is drawn using the diagram functions (e.g., dia.curve, dia.arrow, dia.rect, dia.ellipse ) created as a work around to Rgraphviz.

Details

iclust.diagram provides most of the power of ICLUST.rgraph without the difficulties involved in installing Rgraphviz. It is called automatically from ICLUST.

References

Revelle, W. Hierarchical Cluster Analysis and the Internal Structure of Tests. Multivariate Behavioral Research, 1979, 14, 57-74.

See Also

ICLUST

Examples

Run this code
v9 <- sim.hierarchical()
v9c <- ICLUST(v9)
test.data <- Harman74.cor$cov
ic.out <- ICLUST(test.data)

Run the code above in your browser using DataLab