DegreeDistribution {NetworkExtinction}R Documentation

Degree distribution of the network

Description

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.

Usage

DegreeDistribution(Network, scale = "arithmetic")

Arguments

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

Value

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

Author(s)

Derek Corcoran <derek.corcoran.barrios@gmail.com>

M.Isidora Avila Thieme <msavila@uc.cl>

Examples

library(NetworkExtinction)
data("chilean_intertidal")
DegreeDistribution(chilean_intertidal)


[Package NetworkExtinction version 1.0.3 Index]