cluster: Cluster analysis (of constructs or elements).

Description Usage Arguments Value Author(s) See Also Examples

Description

Cluster analysis (of constructs or elements). cluster is a preliminary implementation of a cluster function. It supports various distance measures as well as cluster methods. More is to come.

Usage

1
2
3
cluster(x, along=0, dmethod="euclidean", cmethod="ward", p=2,
    trim=NA, main, mar=c(4, 2, 3, 15), cex=0, lab.cex=0.8,
    cex.main=0.9, print=TRUE, ...)

Arguments

x

repgrid object.

along

Along which dimension to cluster. 1 = constructs only, 2= elements only, 0=both (default).

dmethod

The distance measure to be used. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski". Any unambiguous substring can be given. For additional information on the different types type ?dist.

cmethod

The agglomeration method to be used. This should be (an unambiguous abbreviation of) one of "ward", "single", "complete", "average", "mcquitty", "median" or "centroid".

p

The power of the Minkowski distance, in case "minkowski" is used as argument for dmethod.

trim

the number of characters a construct is trimmed to (default is 10). If NA no trimming is done. Trimming simply saves space when displaying the output.

main

Title of plot. The default is a name indicating the distance function and cluster method.

mar

Define the plot region (bottom, left, upper, right).

cex

Size parameter for the nodes. Usually not needed.

lab.cex

Size parameter for the constructs on the right side.

cex.main

Size parameter for the plot title (default is .9).

print

Logical. Wether to print the dendrogram (default is TRUE).

...

Additional parameters to be passed to plotting function from as.dendrogram. Type ?as.dendrogram for further information. This option is usually not needed, except if special designs are needed.

Value

Reordered repgrid object.

Author(s)

Mark Heckmann

See Also

bertinCluster

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

cluster(bell2010)
cluster(bell2010, main="My cluster analysis")   # new title
cluster(bell2010, type="t")                     # different drawing style
cluster(bell2010, dmethod="manhattan")          # using manhattan metric
cluster(bell2010, cmethod="single")             # do single linkage clustering
cluster(bell2010, cex=1, lab.cex=1)             # change appearance
cluster(bell2010, lab.cex=.7,                   # advanced appearance changes
edgePar = list(lty=1:2, col=2:1))

## End(Not run)

OpenRepGrid documentation built on May 2, 2019, 4:54 p.m.