Le mardi 04 décembre 2012 à 16:17 -0500, sagnik ray choudhury a écrit :
> I am using R for hierarchical clustering of a number of documents.
> 
> I have a distance matrix on which I have applied hclust method. When I plot
> the result of hclust method, I can see the dendogram plotted. What I need
> now is the dendogram stored as a tree in a data structure. My goal is to
> automatically label all internal nodes. For that, I need to know, which
> leaf nodes make a first level cluster, and which first level clusters make
> a second level cluster and so on. Is there a way in R to get this
> information?
You probably want to convert you 'hclust' object to a 'dendrogram'
object using as.dendrogram(), and work with that tree. See ?dendrogram,
in particular the "Details" section.


My two cents

______________________________________________
R-help@r-project.org 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.

Reply via email to