confidenceEllipse: Get coordinates of a confidence ellipse.

View source: R/confidenceEllipse.R

confidenceEllipseR Documentation

Get coordinates of a confidence ellipse.

Description

?

Usage

confidenceEllipse(x, y = NA, interval = 0.95, vectors = 100)

Arguments

interval

The proportion of data that should fall in the confidence ellipse. Default: 0.95.

vectors

Number of points on the ellipse, equally spaced angularly, not in absolute distance.

X

Vector of X-coordinates or a Mx2 matrix with M sets of X and Y coordinates.

Y

If X is not a matrix, but a vector this has to be a vector of equal size with Y coordinates.

Details

?

Value

A list with four entries: - 'poly' data frame with 'vectors' rows, and 2 columns: 'x' and 'y' with coordinates of an ellipse containing 'interval' proportion of the data - 'major' semi-major-axis length (half the length of the ellipse) - 'minor' semi-minor-axis length (half the width of the ellipse) - 'angle' orientation of the ellipse in degrees - 'centre' the centre of the ellipse

Examples

?

thartbm/SMCL documentation built on Oct. 23, 2022, 5:17 a.m.