Description Usage Arguments Value Author(s) References See Also Examples
View source: R/linkcomm_plotting.R
This function is called by plot.linkcomm
to plot a community membership matrix for the link communities.
1 2 3 | plotLinkCommMembers(x, nodes = head(names(x$numclusters), 10),
pal = brewer.pal(11, "Spectral"), shape = "rect", total = TRUE,
fontsize = 11, nspace = 3.5, maxclusters = 20)
|
x |
An object of class |
nodes |
A character vector specifying the node names that will be included in the plot. Defaults to the 10 nodes that belong to the most communities. |
pal |
A character vector describing a colour palette to be used for community-specific colouring. Defaults to |
shape |
A character string specifying the shape of matrix entries. Can be one of |
total |
Logical, whether to display the number of communities each node belongs to and the number of nodes in each community. Defaults to TRUE. |
fontsize |
A numerical value specifying font size for the node names. Defaults to 11. |
nspace |
A numerical value specifying how much space to leave at the left for fitting in node names. Defaults to 3.5. |
maxclusters |
An integer value specifying the maximum number of communities to display. Defaults to 20. |
A community membership matrix plot.
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 | ## Generate graph and extract link communities.
g <- swiss[,3:4]
lc <- getLinkCommunities(g)
## Plot a community membership matrix.
plot(lc, type = "members")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.