| plot.cograph_communities | R Documentation |
Visualizes network with community coloring using splot.
## S3 method for class 'cograph_communities'
plot(x, network = NULL, ...)
x |
A cograph_communities object |
network |
The original network (required if not stored) |
... |
Additional arguments passed to splot |
Invisibly returns the plot
g <- igraph::make_graph("Zachary")
comm <- community_louvain(g)
mat <- igraph::as_adjacency_matrix(g, sparse = FALSE)
plot(comm, network = mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.