niche.size | R Documentation |
Calculate the size of an elliptical niche region.
niche.size(Sigma, alpha = 0.95)
Sigma |
Variance matrix for normally distributed niche axes. |
alpha |
Probabilistic niche size. |
For a given niche region N_R
, the niche size is defined as the hypervolume of this region: N_S = \int_{x \in N_R} d x
.
Hypervolume niche size.
# for each species, size of 95% niche region using sample variance
tapply(1:nrow(fish), fish$species, function(ind) {
X <- fish[ind,2:4] # all measurements for given species
Sighat <- var(X) # sample variance
niche.size(Sigma = Sighat, alpha = .95)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.