On Tue, Apr 3, 2012 at 2:41 AM, vinod1 wrote:
> Sarah,
>
> . clust_tree=hclust(as.dist(x),method="complete")
> . plot(clust_tree)
>
> this produces a dendrogram, whereas
> . clust_tree=hclust(as.dist(x),method="complete")
> . cut = cutree(clust_tree,k=1:5)
> . plot(
Sarah,
. clust_tree=hclust(as.dist(x),method="complete")
. plot(clust_tree)
this produces a dendrogram, whereas
. clust_tree=hclust(as.dist(x),method="complete")
.cut = cutree(clust_tree,k=1:5)
.plot(cut)
produces a plot with 2 dots. The dissimilarity matrix x
What does "does not work" mean? Do you get an error message? Or a
warning? Or a result, but one that isn't what you expected?
Did you look at the results of the example in ?cutree to make sure
what the function does is what you think it should do?
> hc <- hclust(dist(USArrests))
> cutre
3 matches
Mail list logo