MST-kNN Clustering Algorithm

Implements the MST-kNN clustering algorithm proposed by Inostroza-Ponta (2008) < https://trove.nla.gov.au/work/28729389>. The algorithm determines the number of clusters automatically by recursively intersecting the Minimum Spanning Tree (MST) and the k-Nearest Neighbor (kNN) proximity graphs constructed from a pairwise distance matrix. The value of k is selected via a connectivity criterion (the smallest k such that the kNN graph is connected, bounded by floor(log(n))). The package requires only a distance matrix as input and returns cluster assignments, an 'igraph' network, and partition metadata.


mstknnclust

CRAN status R-CMD-check

mstknnclust implements the MST-kNN clustering algorithm, which determines the number of clusters automatically by recursively intersecting the Minimum Spanning Tree (MST) and k-Nearest Neighbor (kNN) proximity graphs.

Installation

# From CRAN
install.packages("mstknnclust")

# Development version from GitHub
# install.packages("devtools")
devtools::install_github("jorgeklz/package-mstknnclust")

Usage

library(mstknnclust)

# Load the Indo-European languages dataset
data("dslanguages")

# Run clustering (only a distance matrix is needed)
results <- mst.knn(dslanguages)

# Results
results$cnumber   # number of clusters
results$partition # cluster assignments
results$network   # igraph object

# Plot
library(igraph)
plot(results$network,
     vertex.size  = 5,
     vertex.color = components(results$network)$membership,
     layout       = layout_with_fr(results$network, niter = 10000))

Documentation

Full documentation and vignettes are available at the pkgdown site.

References

Inostroza-Ponta, M. (2008). An Integrated and Scalable Approach Based on Combinatorial Optimization Techniques for the Analysis of Microarray Data. Ph.D. thesis, University of Newcastle.

License

GPL-2

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("mstknnclust")

1.0.0 by Jorge Parraga-Alava, 5 months ago


https://github.com/jorgeklz/package-mstknnclust, https://jorgeklz.github.io/package-mstknnclust/


Report a bug at https://github.com/jorgeklz/package-mstknnclust/issues


Browse source code at https://github.com/cran/mstknnclust


Authors: Jorge Parraga-Alava [aut, cre] (ORCID: , Pablo Moscato [aut] , Mario Inostroza-Ponta [aut]


Documentation:   PDF Manual  


GPL-2 license


Imports igraph

Suggests knitr, rmarkdown, testthat


Suggested by FCPS.


See at CRAN