View source: R/spatialMingling.R
spatialMingling | R Documentation |
von Gadow's spatial mingling index
spatialMingling(x, sp, k = 4, adj = FALSE)
x |
two column matrix of individual x and y coordinates |
sp |
vector of individual species names |
k |
number of neighbours to consider |
adj |
logical, if |
Describes the degree of variety in species in the vicinity of a given focal individual. The proportion of the k
nearest neighbours not belonging to the same species as the focal individual, given by the equation:
\frac{1}{k} \sum_{j=1}^{k} v_{j}
where v_{j}
is the status of the competitor individual j
, either 0
if j
belongs to the same species as the focal individual, or 1
if j
belongs to a different species. Values of spatial mingling for a given individual therefore vary between 0 and 1.
As per von Gadow and Hui (2001) this function could be adapted to calculate spatial mingling as a point attribute rather than an individual attribute.
Normally expressed as the mean of values per structural unit to scale up.
value of the spatial mingling index for each individual in the structural unit.
von Gadow, K., Hui, G. Y. (2001). Characterising forest spatial structure and diversity. Sustainable Forestry in Temperate Regions. Proc. of an international workshop organized at the University of Lund, Sweden. Pages 20-30.
data(bicuar)
spatialMingling(bicuar[, c("x", "y")], bicuar$species,
k = 4, adj = FALSE
)
spatialMingling(bicuar[, c("x", "y")], bicuar$species,
k = 4, adj = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.