hull.gamma: Gamma diversity using convex hull hypervolumes.

View source: R/BAT.R

hull.gammaR Documentation

Gamma diversity using convex hull hypervolumes.

Description

Estimation of functional richness of multiple sites, based on convex hull hypervolumes.

Usage

hull.gamma(comm)

Arguments

comm

A 'convhulln' object or list, preferably built with function hull.build.

Details

Estimates the functional richness (gamma FD) of multiple communities using convex hull hypervolumes. Functional richness is expressed as the total volume of the convex hull.

Value

A single value of gamma.

Examples

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)
hull.gamma(hv)
hvlist = hull.build(comm, trait, axes = 2)
hull.alpha(hvlist)
hull.gamma(hvlist)

BAT documentation built on May 29, 2024, 7:35 a.m.

Related to hull.gamma in BAT...