Description Usage Arguments Value Examples
View source: R/get_layers_values.R
function to get the groups based on a clustering algorithm Note: the color of the nodes is based on the group (using the function get_new_colors_based_on_groups()) to evaluate the clustering method we use the modularity measure. The modularity of a graph with respect to some division (or vertex types) measures how good the division is, or how separated are the different vertex types from each other.
1 | get_groups_based_on_clustering(igraph_network, method = "infomap")
|
igraph_network |
igraph network generated by the gen_igraph_network() function. Mandatory argument. |
method |
clustering method:
Default to "infomap" to detect smaller clusters. The Louvain algorithm is faster than the Infomap algorithm in large networks. |
Object of class "dataframe", which reports the genes ID associated with the new groups
1 | ## Not run: get_groups_based_on_clustering(igraph_network,method="infomap")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.