Skip to contents

Given a set of locations, this function approximates the stretching direction of the set by calculating the angle of the main axis of the bivariate 95

Usage

stretch(x, y)

Arguments

x

A vector of x coordinates.

y

A vector of y coordinates.

Value

A single numeric value corresponding to the angle (in radians) of the main axis of the bivariate 95

See also

Author

Simon Garnier, garnier@njit.edu

Examples

x <- rnorm(25)
y <- rnorm(25, sd = 3)
stretch(x, y)
#> [1] -1.412959