dataEllipse: Construct an Ellipse

View source: R/dataEllipse.R

dataEllipseR Documentation

Construct an Ellipse

Description

Constructs an ellipse from x- and y-coordinate data.

Usage

dataEllipse(x, y, percent = 100, smooth = 0)

Arguments

x

the x-coordinate data.

y

the y-coordinate data.

percent

a scale factor, adjusted to include percent of the data.

smooth

required for naming compatibility with other functions, not used.

Value

A list containing the x- and y-coordinates of the ellipse.

See Also

cov2Ellipse, hull

Examples

## Not run: 
set.seed(1)
X <- rnorm(32)
Y <- X + rnorm(32)
TMP <- dataEllipse(X, Y)
# Just print the first 10 values
lapply(TMP, function(x) x[1:10])
# For examples of dataEllipse in graphs see:
vignette(topic="GraphAdditions", package="smwrGraphs")

## End(Not run)

USGS-R/smwrGraphs documentation built on Oct. 11, 2022, 6:11 a.m.