subarea: Convex hull decomposition

Description Usage Arguments Details Value References Examples

View source: R/subarea.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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 Feb. 26, 2021, 5:07 p.m.

Related to subarea in subniche...