Analyze multilevel networks as described in Lazega et al (2008)
multinets is an R package that provides tools to visualize and analyze
Multilevel Network Data. It was built as an extension to the
multinets package is on CRAN. It is developed under control
version using Git and is hosted in GitHub. You can download it from CRAN
You can download the development version from GitHub using
As a basic example, we will plot a multilevel network. We are going to
linked_sim, a simulated multilevel network dataset.
library(igraph)#>#> Attaching package: 'igraph'#> The following objects are masked from 'package:stats':#>#> decompose, spectrum#> The following object is masked from 'package:base':#>#> unionlibrary(multinets)#> multinets was developed by Neylson Crepalde as an extension to 'igraph'# Load the datasetdata("linked_sim")# Test if the data is a multilevel networkis_multilevel(linked_sim)#>  TRUE# Set the layout coordinatesl <- layout_multilevel(linked_sim, layout = layout_with_kk)# Set different colors and shapes for each level verticeslinked_sim <- set_color_multilevel(linked_sim)linked_sim <- set_shape_multilevel(linked_sim)# Plotplot(linked_sim, layout = l, vertex.size = 5, vertex.label = NA)
bug fix - issue #1 - fix if statement with condition length > 1. Changed chain of if statements in mode_transformation to a switch and included an error raise when which argument is missing.
enhance set_shape_multilevel performance with cpp code.
include Rcpp in the project.