cograph — Complex Network Analysis and Visualization

cograph is a modern R package for the analysis, visualization, and manipulation of dynamical, social, and complex networks. It supports multiple network formats — adjacency matrices, edge lists, and igraph objects — and offers flexible tools for heterogeneous, multi-layer, and hierarchical network analysis with simple syntax and an extensive toolset.

The package provides network metrics including centrality measures, motif analysis, and community detection. Plotting is publication-ready with customizable layouts, node shapes, edge styles, and themes. The API is intuitive and pipe-friendly, and cograph is fully compatible with the tna package.

Install with install.packages("cograph") or remotes::install_github("sonsoleslp/cograph"). Full documentation at sonsoleslp.github.io/cograph. See the blog post for examples, the full reference, and the plotting reference.