powered by
Visualizes network with community coloring using splot.
# S3 method for cograph_communities plot(x, network = NULL, ...)
Invisibly returns the plot
A cograph_communities object
The original network (required if not stored)
Additional arguments passed to splot
g <- igraph::make_graph("Zachary") comm <- community_louvain(g) mat <- igraph::as_adjacency_matrix(g, sparse = FALSE) plot(comm, network = mat)
Run the code above in your browser using DataLab