hyper.arrangement | R Documentation |
Functional arrangement of a community, measuring the distribution of species within the total functional space at multiple spatial scales. This is a generic function to be used with any functional volume building method, as long as the functional space can be represented by stochastic points.
hyper.arrangement(
comm,
space,
pool = NULL,
stat = "PNCP",
distances = seq(0, 1, 0.01),
type = "SES",
alpha = 0.05,
runs = 99,
plot = TRUE
)
comm |
Coordinates of species within the functional space. |
space |
Coordinates of stochastic points representing the functional space. These will be used to perform a random displacement null model. |
pool |
Species pool coordinates. When specified (typically coordinates from
|
stat |
statistic to be calculated. One of c("PNCP", "NNCP"), meaning "cumulative proportion of pairwise neighbors" and "cumulative proportion of nearest neighbors", respectively. |
distances |
vector of distances to be considered in calculations |
type |
Envelope type for testing significance. One of c("ecdf", "norm", "SES"), meaning "empirical cumulative distribution", "normalized envelope" (between 0-1, 0.5 indicate randomness, more than 0.5 - clustered; less than 0.5 - inhibition), and "standardized effect size", respectively. |
alpha |
alpha value to consider in significance testing (p-value) when type = "SES" |
runs |
number of simulations for significance testing |
plot |
whether to plot the results |
This function measures the functional arrangement (Carvalho & Cardoso, 2025) of a n-dimensional functional space, namely the distribution of species within the total trait at multiple spatial scales. Species coordinates are typically obtained through ordination methods. The functional space can be constructed using one-class support vector machines (e.g., as implemented in the hyper.build function or as implemented in other packages, such as kernlab or e1071) or alternative approaches, as long as they can represent the functional space through stochastic points.
A list with observed PNCP or NNCP values, a matrix of simulated values at r distances (r x sim), and standard effect size (if type = "SES").
Carvalho, J.C. & Cardoso, P. (2025) Quantifying species distribution within the functional space.
## Not run:
comm = c(100,3,0,5,3)
names(comm) = c("SpA", "SpB", "SpC", "SpD", "SpE")
trait = data.frame(body = c(1,2,3,4,2), beak = c(1,5,4,1,2))
rownames(trait) = names(comm)
hv = kernel.build(comm, trait, method.hv = "svm", svm.nu = 0.01, svm.gamma = 0.25)
hyper.arrangement(comm = hv@Data, space = hv@RandomPoints)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.