Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »
george
Am using R to do some clustering using agnes(from cluster package) my input is a dissimilarity table. i would like to attach some labels to the resulting tree. Any ideas about the way to do that?
if you have the original matrix from which you calculated the dissim object (of class dist), then the row names of the original matrix will be carreid over and will show up when you plot the dendrogram. If you don't have the original matrix, just add an attribute called "Labels" to the dissimilarity object - Rajarshi Guha
Thanks Rajarsh! but it does not seem to do that. Now i have the dissimilarity, what the syntax for adding the labels attribute? i could be getting it wrong - george
attr(x ,"Labels") <- c('row1', 'row2' ..... - Rajarshi Guha