Learn R Programming

PERMANOVA (version 0.2.0)

plot.ellipse: Plot a concentration ellipse

Description

Plot a concentration ellipse obtained from ConcEllipse.

Usage

# S3 method for ellipse
plot(x, add = TRUE, labeled = FALSE, center = FALSE, centerlabel = "Center",
initial = FALSE, ...)

Arguments

x

An object with class ellipse obtained from ConcEllipse.

add

Should the ellipse be added to the current plot?

labeled

Should the ellipse be labelled with the confidence level?

center

Should the center be plotted?

centerlabel

Label for the center.

initial

Should the initial data be plotted?

Any other graphical parameter that can affects the plot (as color, etc ...).

Value

No value returned.

Details

Plots an ellipse containing a specified percentage of the data.

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.

See Also

ConcEllipse

Examples

Run this code
# NOT RUN {
data(iris)
dat=as.matrix(iris[1:50,1:2])
plot(iris[,1], iris[,2],col=iris[,5], asp=1)
E=ConcEllipse(dat, confidence=0.95)
plot(E, add=TRUE, center=TRUE)
# }

Run the code above in your browser using DataLab