R package to study multi-level network motifs

Together with the phenomenal Tim Seppelt (Informatics PhD Student in Aachen (D)), I have implemented an R package to analyse multi-level networks in terms of motifs.

All up to data information on the package can be found on the package homepage:

Multi-level networks combine multiple networks in one representation, e.g. social-ecological networks, which connect a social network (e.g. interactions among fishermen) with an ecological network (e.g. interactions between fish species) and the ties in between (e.g. fishers who fish specific species).

Motifs are small configurations of nodes and edges (subgraphs) within an overall network.

Package features include:

  • Visualization: The package provides functions to visualize multi-level networks, based on ggraph.
  • Motif counts: The package is in many parts a R wrapper for the excellent SESMotifAnalyser Python framework written by Tim Seppelt to count multi-level network motifs, compare them to a baseline and much more.
  • Contributions of edges to motifs: motifr further identifies and visualizes functional gaps and critical edges in multi-level networks based on contributions of existing or potential edges to given motifs (this is theoretically motivated by network theories of functional fit and misfit).