Description Usage Arguments Value Examples
View source: R/Angular-functions.R
Takes a set of x, y coordinates and, using atan2
, returns a matrix of the angles from each point defined to all points within a specified radoius. (If no radius is specified, the angles from each point to every other point are returned)
1 | pointwise.angles.atan2(pts, radius)
|
pts |
A two-column matrix containing the coordinates of the points to be compared. |
radius |
The radius (in the coordinate system of the plan) defining the area around each point within which the angles will be calculated. |
A (n x n+2) matrix containing the x, y coordinates in its first two columns, and the angles measured to every other point in the remaining columns. If no angle was measured, NA is returned in the appropriate cell.
1 | r0.2 <- pointwise.angles.atan2(p, radius = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.