Dear All,
I used the function daisy() and agnes() in the package cluster to,
respectively, generate a dissimilarity matrix and a dendrogram (via plot
function). But I have 405 species plotted on the dendrogram. This means
that the result is not easily readable.
Do anyone know how arrange the dendrogram in a way that is either easy
to read or to print?
And, how can I have acces to members of a given cluster group for a
given cutting level?
My commands are :
data<-read.csv2(file="datalifetraits.csv")
library(cluster)
data.daisy <- daisy(data,metric="gower")
data.agnes <- agnes(data.daisy,diss=TRUE,method="ward")
> str(data.agnes)
List of 8
$ order : int [1:405] 1 22 16 386 23 147 196 148 322 332 ...
$ height : num [1:404] 0.122 0.159 0.102 0.543 0.204 ...
$ ac : num 0.97
$ merge : int [1:404, 1:2] -354 -169 -368 -105 -378 -218 -106 -258
-350 -344 ...
$ diss : NULL
$ call : language agnes(x = data.daisy, diss = TRUE, method = "ward")
$ method : chr "ward"
$ order.lab: chr [1:405] "Ana125" "Mac323" "Cou291" "Ste7817" ...
- attr(*, "class")= chr [1:2] "agnes" "twins"
plot(data.agnes)
Thanks
Bruno Herault
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.