Create your own dissimilarity matrix and save it in a file, say test.matrix
| column1 | column2 | column3 |
| 0 | 1 | 3 |
| 1 | 0 | 2 |
| 3 | 2 | 0 |
install.packages("tseries")
library("tseries")
test <- read.matrix("test.matrix",header=TRUE,sep="\t")
h = hclust(as.dist(test))
plot(h)

This work is licensed under a Creative Commons
Attribution 4.0 International License.