siberCentroids: Calculate the polar form of the vector between pairs of...

siberCentroidsR Documentation

Calculate the polar form of the vector between pairs of ellipse centroids

Description

This function loops over each group within each community and calculates the vector in polar form between the estimated centroids of each ellipse to each other ellipse.

Usage

siberCentroids(corrected.posteriors)

Arguments

corrected.posteriors

the Bayesian ellipses as returned by siberMVN().

Value

A list containing two arrays, one r contains the pairwise distances between ellipse centroids in as the first two dimensions, with the third dimension containing the same for each posterior draw defining the ellipse. The second array theta has the same structure and contains the angle in radians (from 0 to 2*pi) between the pairs. A third object labels refers to which community.group combination is in each of the first two dimensions of the arrays.


SIBER documentation built on Oct. 19, 2023, 5:09 p.m.