search for: mydistmatrix

Displaying 1 result from an estimated 1 matches for "mydistmatrix".

2006 Apr 18
2
questioin about cluster in R
...rix as below. --- 0 35 33 9 36 35 0 10 32 51 33 10 0 30 49 9 32 30 0 35 36 51 49 35 0 ------------------- I want to do cluster with average method. ---- rown<-c("A", "B", "C", "D", "E") mydistMatrix <- read.table("D:\\5.distance",row.names = rown) mydistObj<-as.dist(mydistMatrix, diag = FALSE, upper = FALSE) mycluster <- hclust(mydistObj,method="average") bmp(filename = " D:\\5_ave.bmp") plot(mycluster,hang=-1) dev.off() --- The result is something li...