Description Usage Arguments Details Value Examples
Cluster functional terms
1 2 | cluster_terms(mat, method = "binary_cut", control = list(), catch_error = FALSE,
verbose = TRUE)
|
mat |
A similarity matrix. |
method |
Method for clustering the matrix. |
control |
A list of parameters passed to the corresponding clustering function. |
catch_error |
Internally used. |
verbose |
Whether to print messages. |
The following methods are the default:
kmeanssee cluster_by_kmeans.
dynamicTreeCutsee cluster_by_dynamicTreeCut.
mclustsee cluster_by_mclust.
apclustersee cluster_by_apcluster.
hdbscansee cluster_by_hdbscan.
fast_greedysee cluster_by_igraph.
leading_eigensee cluster_by_igraph.
louvainsee cluster_by_igraph.
walktrapsee cluster_by_igraph.
MCLsee cluster_by_MCL.
binary_cutsee binary_cut.
Also the user-defined methods in all_clustering_methods can be used here.
New clustering methods can be registered by register_clustering_methods.
Please note it is better to directly call cluster_terms for clustering while not the individual cluster_by_* functions
because cluster_terms does additional cluster label adjustment.
A numeric vector of cluster labels (in numeric).
If catch_error is set to TRUE and if the clustering produces an error,
the function returns a try-error object.
1 2 | # There is no example
NULL
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.