sp_hypercube: Returns the frequency of any taxonomic unit in a selected...

View source: R/sp_hypercube.R

sp_hypercubeR Documentation

Returns the frequency of any taxonomic unit in a selected combination of environmental factors

Description

Returns the frequency of any taxonomic unit in a selected combination of environmental factors

Usage

sp_hypercube(env, sp, partitions = 3, intersection = TRUE)

Arguments

env

Vector or matrix of quantitative environmental data

sp

A vector or matrix of the abundance or presence of a species or taxonomic unit registered in the same samples as environmental data.

partitions

Number of intervals in which to divide the range of each variable.

intersection

logical, in case of param sp has two or more species

Value

An object of class 'ftable' with the abundance of a species or combination of them in a grid of environmental variables.

Examples


data(soilandfauna)

# Selecting community (species) data

com <- soilandfauna[,18:60]

# Selecting environmental data

env <- soilandfauna[,3:17]

# Obtaining the presence of the Onychiuridae species in a grid 
# of environmental variables 

sp_hypercube(env[,c("P","OM","N")],com[,"Onychiuridae"],5)

# Obtaining the simultaneous presence of four species in a grid 
# of environmental variables

sp_hypercube(env[,c("P","OM","N")],com[,c("Onychiuridae","Isotomidae", 
"Eupodoidea", "Aporrectodea_rosea",5)


lsaravia/EcoIndicators documentation built on Sept. 19, 2024, 11:07 p.m.