Clusters the given distance matrix and generates a heatmap to display it.
Usage
# S3 method for class 'kalisDistanceMatrix'
plot(x, cluster.method = "average", ...)
Arguments
- x
a distance matrix, such as returned by
DistMat()
.- cluster.method
the agglomeration method to be used, which is passed to the
fastcluster::hclust()
function. This must be (an unambiguous abbreviation of) one of "single", "complete", "average", "mcquitty", "ward.D", "ward.D2", "centroid" or "median".- ...
further arguments to be passed on to the underlying
lattice::levelplot()
plotting function.
References
Aslett, L.J.M. and Christ, R.R. (2024) "kalis: a modern implementation of the Li & Stephens model for local ancestry inference in R", BMC Bioinformatics, 25(1). Available at: doi:10.1186/s12859-024-05688-8 .