# NOT RUN {
library(mergeTrees)
M1 = matrix(c(0,2,3,4,2,0,1,5,3,1,0,7,4,5,7,0), ncol = 4, nrow = 4)
M2 = matrix(c(0,1,5,6,1,0,7,9,5,7,0,2,6,9,2,0), ncol = 4, nrow = 4)
h1 = hclust(as.dist(M1))
h2 = hclust(as.dist(M2))
MT = mergeTrees(list(h1, h2))
oldpar <- par(mfrow = c(1,3))
plot(h1)
plot(h2)
plot(MT)
par(oldpar)
# }
Run the code above in your browser using DataLab