subarea: Convex hull decomposition

View source: R/subarea.R

subareaR Documentation

Convex hull decomposition

Description

The function is used to calculate the coordinates and area of each convex hull from E environmental space to SR subniche.

Usage

subarea(subnic)

Arguments

subnic

an object of class subniche.

Details

The convex hulls measured are :

  1. E is the environmental space.

  2. K the sub-environmental space.

  3. NR the realized subniche.

  4. SP the existing fundamental subniche.

  5. SB the area of the biological constraint reducing SP.

  6. SR the species realized subniche.

See doi: 10.7717/peerj.3364 for more details on the subniche concept.

Value

A list containing the coordinates and area of each convex hulls

References

Karasiewicz S.,Doledec S.and Lefebvre S. (2017). Within outlying mean indexes: refining the OMI analysis for the realized niche decomposition. PeerJ 5:e3364. doi: 10.7717/peerj.3364.

Examples

library(subniche)
data(doubs)
dudi1 <- dudi.pca(doubs$env, scale = TRUE, scan = FALSE, nf = 3)
nic1 <- niche(dudi1, doubs$fish, scann = FALSE)
# number of sites
N <- dim(nic1$ls)[1]
#Create a factor which defines the subsets
fact <- factor(c(rep(1,N/2),rep(2,N/2)))
# nic1 will be use as reference and fact will be use to define the subniches environment
subnic1 <- subniche(nic1, fact)
area_sub <- subarea(subnic1)

subniche documentation built on July 15, 2022, 5:05 p.m.

Related to subarea in subniche...