Description Usage Arguments Value
Mainly intended to show equivalence with hclust, when one generates a distance matrix to use with hclust and then with fastLiclust to generate the same dendrogram.
1 | toLinkmat(mat, disconnect = 1)
|
mat |
The input distance matrix, as obtained from as.matrix() on a dist object |
disconnect |
The distance value for disconnected features, e.g. 1 in dissimilarity matrices, or NA when that value was set to NA before. These points are not represented in the linkage matrix. |
A list with components linkmat (a matrix of connected vertex pairs), sim (the distances associated with the edges), and weights (a counter which denotes the number of original vertices summed up in a cluster, initialized to 1.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.