Learn R Programming

PERMANOVA (version 0.2.0)

ConcEllipse: Non-parametric concentration ellipses

Description

Calculates non-parametric concentration ellipses for a two-dimensional set of points

Usage

ConcEllipse(data, center = NULL, confidence = 1, npoints = 100)

Arguments

data

A two dimensional set of points.

center

Center of the data.

confidence

Confidence for the concentration ellipse.

npoints

Number of points to plot.

Value

data

Original data

confidence

Percent of points selected for the ellipse

ellipse

points to plot the ellipse

center

center of the ellipse

Details

Calculates non-parametric concentration ellipses for a two-dimensional set of points using distances to the center.

References

Meulman, J. J., & Heiser, W. J. (1983). The display of bootstrap solutions in multidimensional scaling. Murray Hill, NJ: Bell Laboratories.

Linting, M., Meulman, J. J., Groenen, P. J., & Van der Kooij, A. J. (2007). Stability of nonlinear principal components analysis: An empirical study using the balanced bootstrap. Psychological Methods, 12(3), 359.

Examples

Run this code
# NOT RUN {
x=runif(30)
y=x+rnorm(30)*0.3
plot(x, y)
el=ConcEllipse(cbind(x,y), confidence=0.95)
plot(el)
# }

Run the code above in your browser using DataLab