Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

siberCentroids

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

Stable Isotope Bayesian Ellipses in R

v2.1.6
GPL (>= 2)
Authors
Andrew Jackson and Andrew Parnell
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.