O'Reilly logo

RStudio for R Statistical Computing Cookbook by Andrea Cirillo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

install.packages("linkcomm")
library(linkcomm)

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required