Showing communities in a network with the linkcomm package

The linkcomm package is an R package developed with the main aim of letting you discover and study communities that exist within your network. These communities are discovered by applying an algorithm derived from the paper Link communities reveal multiscale complexity in networks by Ahn Y.Y., Bagrow J.P., and Lehmann.

Getting ready

In order to use linkcomm functionalities, we first need to install and load the linkcomm package:


As a sample dataset, we will use the lesmiserables hedge list, provided in the linkcomm package. This dataset basically shows relations hips between characters in Victor Hugo's novel Les Misérables.

You can get a sense ...

Get RStudio for R Statistical Computing Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.