DegreeDistribution | R Documentation |
This function calculates the degree distribution of the network. First it fits exponential, power law and truncated power law distribution models, and calculates the AIC values to select the best fit, and finally it plots the degree distribution in a log log scale showing the three fitted models mentioned above against the observed distribution.
DegreeDistribution(Network, scale = "arithmetic")
Network |
a trophic network of class network |
scale |
a character stating if the graph is on a log-log scale ("LogLog") or arithmetic scale ("arithmetic"), defaults to arithmetic |
exports three principal results: 1. A list with network degree distribution values and with the value of each fit model 2. A list with each model results and AIC of the distribution models 3. A Ghraph of the degree distribution with the models adjust In DDvalues, k represent the degree of the network and cumulative the probability that each specie could be have this degree (pk). Observation: In the graph, the zero values are not represented but this result are incorporate in the DF result
Derek Corcoran <derek.corcoran.barrios@gmail.com>
M.Isidora Avila Thieme <msavila@uc.cl>
library(NetworkExtinction)
data("chilean_intertidal")
DegreeDistribution(chilean_intertidal)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.