If called for an
object,
as.hclust
creates an hclust
object.
The heights are transformed to the interval from base
(height
of lowest join) to 1 (height of highest join).
If called for an
or
object, aggExCluster
is
called internally to create a cluster hierarchy first. This is only
possible if the pairwise similarities are included in the sim
slot of x
(see aggExCluster
on how to ensure
this).
If x
is an
object obtained by
clustering an entire data set, as.hclust
produces a complete
hierarchy. If, however, x
is an
(or
) object or an
obtained by running
aggExCluster
on an
or
object, then as.hclust
produces
a hierarchy of clusters, not of samples.
If called for an
object,
as.dendrogram
creates an
dendrogram
object.
Analogously to as.hclust
, the heights are transformed to the
interval ranging from base
(height
of lowest join) to 1 (height of highest join). So, any information
about heights of merges is lost. If the original join heights are
relevant, call plot
on the original
object directly without coercing it
to a dendrogram
object first.
If called for an
or
object, aggExCluster
is
called first to create a cluster hierarchy. Again this is only
possible if the pairwise similarities are included in the sim
slot of object
.
If object
is an
object obtained by
clustering an entire data set, as.dendrogram
produces a complete
dendrogram. If object
is an
(or
) object or an
obtained by previously running
aggExCluster
on an
or
object, then as.dendrogram
produces
a complete dendrogram of all samples, too, but with the difference
that entire clusters of the previous
or
object are not further split up
hierarchically.
Consequently, if x
is not a complete cluster hierarchy, but a
hierarchy of clusters, as.dendrogram(as.hclust(x))
produces a
dendrogram of clusters, whereas as.dendrogram(x)
in any case
produces a dendrogram of samples (with the special property mentioned
above).