Learn R Programming

cograph (version 2.0.0)

plot.cograph_communities: Plot Community Structure

Description

Visualizes network with community coloring using splot.

Usage

# S3 method for cograph_communities
plot(x, network = NULL, ...)

Value

Invisibly returns the plot

Arguments

x

A cograph_communities object

network

The original network (required if not stored)

...

Additional arguments passed to splot

Examples

Run this code
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