mrn | R Documentation |
This function will create a Multiplex Recurrence Network from a list of igraph objects that can be considered the layers of a network. The layers must have the same number of nodes. There are two modes of operation: Layer similarity (MRNweightedBy
is set to "InterLayerMI"
, "InterLayerCor"
, "EdgeOvelap"
, or "JRP
") and Layer importance (not implemented yet). The former generates weighted MRN based on Interlayer Mutual Information, Interlayer Correlation, Edge Overlap, Joint Recurrence Rate.
mrn(
layers,
MRNweightedBy = c("InterLayerMI", "InterLayerCor", "EdgeOverlap", "JRP")[1],
jrp_measure = "RR",
win = NA,
step = NA,
overlap = NA,
alignment = "r",
cumulative = FALSE,
doPlot = FALSE,
silent = TRUE
)
layers |
A list of igraph objects representing the layers of the multiplex network. The layer networks must all have the same number of vertices. |
MRNweightedBy |
The measure to be used to evaluate the average structural similarities between the layers of the network. Valid options are: |
jrp_measure |
Which JRP measure should be used to asses layer similarity. Use a column name of the data frame output by rp_measures (default = |
win |
The window size passed to |
step |
The stepsize for the sliding window (default = |
overlap |
The window overlap passed to |
alignment |
Whether to right ( |
cumulative |
To make the network represent cumulative time, set |
doPlot |
Plot the multiplex recurrence network (default = |
silent |
Silent-ish mode. (default = FALSE). |
A list object with a (windowed) Multiplex Recurrence Matrix based on MRNweightedBy
:
interlayerMI - One or more matrices with edge weights between layers that represent the interlayer Mutual Information.
interlayerCor - One or more matrices with edge weights between layers that represent the Pearson correlation between vertex degrees (or strength if layers are weighted graphs) of layers.
edgeOverlap - One or more matrices with edge weights between layers that represent the overlapping edges between layers.
jointRP - One or more matrices with edge weights between layers that represent the value of the joint RP passed in jrp_measure
. The default is the "RR"
of joint Recurrence Plot of the two layers.
The field meanValues contains one or more matrices that represent the means and SDs of the weights requested inMRNweightedBy
. The measure eo_joint
(returned with "edgeOverlap"
) refers to the number of edges shared among all layers of the MRN.
# Create some layers
library(igraph)
layers <- list(g1 = igraph::sample_smallworld(1, 100, 5, 0.05),
g2 = igraph::sample_smallworld(1, 100, 5, 0.5),
g3 = igraph::sample_smallworld(1, 100, 5, 1))
mrn(layers = layers)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.