Description Usage Arguments Value Warning References Examples
This function creates the multiplex structure, which is used in all the other functions of the package. This function implements the tensor-based framework proposed by De Domenico (2014) creating a list with nodes, layers and layers' names, adjacency matrices and types of relationships within each layer.
| 1 |   create.multiplex(nodes, layersNames = FALSE, layer1, type1, ...)
 | 
| nodes | Any  | 
| layersNames | Allows to specify a vector of labels for the layers given in input by the next arguments. Default is  | 
| layer1 | Any  | 
| type1 | A string describing the type of relationship expected for the first layer ( | 
| ... | This argument allows to input any other layer belonging to the multiplex network, in the same structure as  | 
A list of the following objects, which will be useful in all the other functions developed in this package:
| nodes | The same  | 
| layers | A  | 
| adjacency | A  | 
| type | A  | 
| layersNames | A  | 
| interlayersMatrix | A N*L x N*L  | 
It is suggested to specify layersNames = FALSE argument even if no vector of layers names is given in input. If not, execution could cause problem/errors.
De Domenico et al (2014). Mathematical formulation of multilayer networks. Phys. Rev. X 3, 041022.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Loading Aarhus CS Department dataset.
data(aarhus_mplex)
# Creating the multiplex object using the dataset loaded into aarhus_mplex object.
# Note that all the layers refers to undirected relationship (so, their 'type'
# arguments are not specified).
mplexObj <- create.multiplex(nodes = aarhus_mplex$nodes,
                            layersNames = aarhus_mplex$layerNames,
                            layer1 = aarhus_mplex$L1,
                            type1 = "undirected",
                            aarhus_mplex$L2,
                            aarhus_mplex$L3,
                            aarhus_mplex$L4,
                            aarhus_mplex$L5
                            )
# Display the structure of the multiplex object created:
str(mplexObj)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.