hclusterpar(x, method = "euclidean", diag = FALSE, upper = FALSE,
link = "complete", members = NULL, nbproc = 2)
merge
describes the merging of clusters
at step $i$ of the clustering.
If an element $j$ in the row is negative,
then observation $-j$ was merged at this stage.
If $j$ is positive then the merge
was with the cluster formed at the (earlier) stage $j$
of the algorithm.
Thus negative entries in merge
indicate agglomerations
of singletons, and positive entries indicate agglomerations
of non-singletons.method
for the particular agglomeration.merge
will not have
crossings of the branches.d
(only returned if the distance object has a "method"
attribute).print
and a plot
method for
hclust
objects.
The plclust()
function is basically the same as the plot method,
plot.hclust
, primarily for back compatibility with S-plus. Its
extra arguments are not yet implemented.hclust
and function
distpar
. hcluster(x, method = "euclidean",link = "complete")
= hclust(dist(x, method = "euclidean"),method = "complete"))
For more details, see documentation of hclust
and dist
.
Dist
, hcluster
, hclust
, kmeans
.data(USArrests)
hc <- hclusterpar(USArrests,link = "ave",nbproc=8)
plot(hc)
plot(hc, hang = -1)
## To check...
hc <- hcluster(USArrests,link = "ave")
plot(hc)
## The same ?
Run the code above in your browser using DataLab