Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/linkcomm_misc.R
This function extracts meta-communities from a dendrogram of community relatedness based on a user-defined place at which to cut the dendrogram.
1 2 3 |
x |
An object of class |
lc |
An object of class |
cutat |
A numerical value at which to cut the dendrogram. |
plot |
Logical, whether to plot the dendrogram and the meta-communities, defaults to TRUE. |
col |
Logical, whether to colour the meta-communites. |
pal |
A character vector describing a colour palette to be used for colouring the meta-communites in the dendrogram plot. Defaults to |
labels |
Logical, whether to put labels on the dendrogram. Defaults to FALSE. |
plotcut |
Logical, whether to display a horizontal line where the dendrogram is cut. Defaults to TRUE. |
right |
Logical, whether to orient the dendrogram to the right. Defaults to TRUE. |
verbose |
Logical, whether to display the progress of colouring the dendrogram. Defaults to TRUE. |
... |
Additional arguments to be passed to |
Extracting meta-communities allows the user to explore community relatedness and structure at higher levels.
A list of integer vectors, referring to meta-communities of link communities.
Alex T. Kalinka alex.t.kalinka@gmail.com
Kalinka, A.T. and Tomancak, P. (2011). linkcomm: an R package for the generation, visualization, and analysis of link communities in networks of arbitrary size and type. Bioinformatics 27, 2011-2012.
1 2 3 4 5 6 7 | ## Generate graph, extract link communities, and cluster communities.
g <- swiss[,3:4]
lc <- getLinkCommunities(g)
hc <- getClusterRelatedness(lc)
## Cut dendrogram at 1 and extract meta-communities.
cutDendrogramAt(hc, cutat = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.