Learn R Programming

swaRm (version 0.6.0)

stretch: Stretching Direction

Description

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)

Value

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

Arguments

x

A vector of x coordinates.

y

A vector of y coordinates.

Author

Simon Garnier, garnier@njit.edu

See Also

sphericity

Examples

Run this code
x <- rnorm(25)
y <- rnorm(25, sd = 3)
stretch(x, y)

Run the code above in your browser using DataLab