sp_hypercube | R Documentation |
Returns the frequency of any taxonomic unit in a selected combination of environmental factors
sp_hypercube(env, sp, partitions = 3, intersection = TRUE)
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 |
An object of class 'ftable' with the abundance of a species or combination of them in a grid of environmental variables.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.