This is an R package to analize ecological networks, including multilayer networks, recently developed network metrics and also some old ones conveniently in the same place. Functions to read, plot and a big set of networks are also included in the package.
Read the example data included in the package
require(multiweb) fileName <- c(system.file("extdata", package = "multiweb")) fileName <- system.file("extdata", "BarentsBoreal_FW.csv", package = "multiweb") g <- readNetwork(fileName)
Read multiple interaction network in different layers as a list
fileName <- c(system.file("extdata", package = "multiweb")) dn <- list.files(fileName,pattern = "^Kefi2015.*\\.txt$") g <- readNetwork(dn,fileName, skipColumn = 2)
Convert to mgraph type
gt <- igraph2mgraph(g,c("Negative","Positive","Antagonistic"))
Read multiple interaction network with a function
types <- c("Competitive","Mutualistic","Trophic") gt <- readMultiplex(dn,types,fileName, skipColumn = 2)
Calculate QSS (quasi-sign-stability) for multiple interactions networks (mgraph)
Marina, T. I., Saravia, L. A., Cordone, G., Salinas, V., Doyle, S. R., & Momo, F. R. (2018). Architecture of marine food webs: To be or not be a ‘small-world.’ PLoS ONE, 13(5), 1–13. https://doi.org/10.1371/journal.pone.0198217
Ecological network assembly: how the regional metaweb influences local food webs Leonardo A. Saravia, Tomás I. Marina, Nadiah P. Kristensen, Marleen De Troch, Fernando R. Momo bioRxiv 340430; doi: https://doi.org/10.1101/340430
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.