stretch: Stretching Direction

View source: R/shape.R

stretchR Documentation

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)

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

Author(s)

Simon Garnier, garnier@njit.edu

See Also

sphericity

Examples

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


swarm-lab/swaRm documentation built on Dec. 3, 2023, 9:30 p.m.