View source: R/ecology.summary.R
ecology.summary | R Documentation |
Outputs a niche-by-niche matrix for each ecology where each cell, [A,B], corresponds to the number of individuals who are in both niche A and niche B. Diagonal elements, [A,A], contain the number of individuals exclusively in ecology A.
ecology.summary(blauObj, percent = FALSE)
blauObj |
An object of class blau initialized with the function |
percent |
Defaults to |
The purpose of this function is to give the analyst a sense of the structure of the ecology. At one extreme the niches may be completely overlapping and at the other the niches may be completely separate. The former condition suggests fierce competition, whereas the later suggests strong localization. A situation in the middle indicates a particularly interesting competitive situation.
Returns an object of class data.frame
that contains a niche-by-niche matrix for each ecology. Ecology and niche identifiers are presented in the first two columns, followed by the niche-by-niche matrix. Matrices are stacked vertically.
data(TwoCities) b <- blau(TwoCities, node.ids = 'respID', ecology.ids = 'samp') b <- niches(b, dev.range = rep(1.5, 10)) # 10 is the number of dimensions ecology.summary <- ecology.summary(b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.