View source: R/calcTopologicalIndices.r
classify_topological_roles | R Documentation |
We use the topological roles calculated with calc_topological_roles()
and categorize them following the approach of
Kortsch (2015), that defines species roles based in two thresholds PC=0.625 and dz=2.5.
If a species had at least 60% of links within its own module then PC<0.625, and if it also had dz≥ 2.5, thus it was
classified as a module hub, labeled modhub. If a species had PC<0.625 and dz<2.5, then it was called a peripheral
or specialist, labeled modspe. Species that had PC≥0.625 and dz<2.5 were considered module connectors modcon.
Finally, if a species had PC≥0.625 and dz≥ 2.5, then it was classified as a super-generalist or hub-connector hubcon.
classify_topological_roles(tRoles, g, spingB = NULL, plt = FALSE)
tRoles |
Calculated topological roles with the function |
g |
Igraph network object |
spingB |
Igraph community object |
plt |
logical whether a plot is generated |
a data.frame with the classified topological roles
Kortsch, S., Primicerio, R., Fossheim, M., Dolgov, A. V & Aschan, M. (2015). Climate change alters the structure of arctic marine food webs due to poleward shifts of boreal generalists. Proc. R. Soc. B Biol. Sci., 282
Saravia, L.A., Marina, T.I., De Troch, M. & Momo, F.R. (2018). Ecological Network assembly: how the regional meta web influence local food webs. bioRxiv, 340430, doi: https://doi.org/10.1101/340430
## Not run: g <- netData[[2]] tp <- calc_topological_roles(g,nsim=10) classify_topological_roles(tp,g,plt=TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.