plot.cograph_communities: Plot Community Structure

View source: R/communities.R

plot.cograph_communitiesR Documentation

Plot Community Structure

Description

Visualizes network with community coloring using splot.

Usage

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

Arguments

x

A cograph_communities object

network

The original network (required if not stored)

...

Additional arguments passed to splot

Value

Invisibly returns the plot

Examples


g <- igraph::make_graph("Zachary")
comm <- community_louvain(g)
mat <- igraph::as_adjacency_matrix(g, sparse = FALSE)
plot(comm, network = mat)


cograph documentation built on April 1, 2026, 1:07 a.m.