dist.ellipse | R Documentation |
dist.ellipse
computes the length of the minor axis
needed for an ellipse of a certain shape
and
angle
to intersect each of the other coordinates
from a starting coordinate.
dist.ellipse(coords, shape, angle)
coords |
An |
shape |
The ratio of the major axis to the minor axis of the ellipse |
angle |
The angle of the ellipse in the range [0, 180). |
A matrix of distances between each coordinate and all other coordinates (and itself). Each row contains the distances for a coordinate.
data(nydf)
coords <- as.matrix(nydf[, c("x", "y")])
d <- dist.ellipse(coords, 4, 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.