hull.alpha | R Documentation |
Estimation of functional richness of one or multiple sites, based on convex hull hypervolumes.
hull.alpha(comm)
comm |
A 'convhulln' object or list, preferably built with function hull.build. |
Estimates the functional richness (alpha FD) of one or more communities using convex hull hypervolumes. Functional richness is expressed as the total volume of the convex hull.
One value or a vector of alpha diversity values for each site.
comm = rbind(c(1,3,0,5,3), c(3,2,5,0,0))
colnames(comm) = c("SpA", "SpB", "SpC", "SpD", "SpE")
rownames(comm) = c("Site 1", "Site 2")
trait = data.frame(body = c(1,2,3,4,4), beak = c(1,5,4,1,2))
rownames(trait) = colnames(comm)
hv = hull.build(comm[1,], trait)
hull.alpha(hv)
hvlist = hull.build(comm, trait, axes = 2)
hull.alpha(hvlist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.