cplot | R Documentation |
Map groups of nodes onto an input graph, based on a membership vector.
cplot(graph, membership, l = layout.auto, map = FALSE, verbose = FALSE, ...)
graph |
An igraph object. |
membership |
Cluster membership vector for each node. |
l |
graph layout. One of the |
map |
A logical value. Visualize cluster mapping over the input graph. If FALSE (default), visualization will be disabled. For large graphs, visualization may take long. |
verbose |
A logical value. If FALSE (default), the processed graphs will not be plotted to screen, saving execution time (they will be returned in output anyway). |
... |
Currently ignored. |
The list of clusters and cluster mapping as igraph objects.
Mario Grassi mario.grassi@unipv.it
clusterGraph
,
clusterScore
# Clustering ALS graph with WTC method
G <- alsData$graph
membership <- clusterGraph(graph = G, type = "wtc")
cplot(G, membership, map = TRUE, verbose = FALSE)
cplot(G, membership, map = FALSE, verbose = TRUE)
# The list of cluster graphs !
cg <- cplot(G, membership); cg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.