# NOT RUN {
library(amap)
hc1 <- hcluster(t(plants[,-1]), method="manhattan", link = "ward")
hc2 <- hcluster(t(plants[,-1]), method="manhattan", link = "complete")
hclist <- list(hc1, hc2)
tfluctile( tt<-optile(hclist, k= c(8,8) ) )
s1 <- subtree(hc1, k = 12)
s2 <- subtree(hc2, k = 10)
tfluctile( table(s1$data, s2$data), tree = list(s1,s2))
# }
Run the code above in your browser using DataLab