alpha.bags {biplotEZ} | R Documentation |
Create alpha bags
Description
This function produces \alpha
-bags, which is a useful graphical summary of the
scatter plot. The alpha-bag refers to a contour which contains \alpha
% of the observations.
Usage
alpha.bags(bp, alpha = 0.95, which = NULL, col = ez.col[which], lty = 1,
lwd = 1, max = 2500, trace = TRUE, opacity = 0.25, outlying=FALSE)
Arguments
bp |
an object of class |
alpha |
numeric vector between 0 and 1 to determine coverage of the bag ( |
which |
numeric vector indicating the selection of groups or classes to be fitted with |
col |
vector of colours for the |
lty |
vector of line types for the |
lwd |
vector of line widths for the |
max |
maximum number of samples to include in |
trace |
logical, indicating progress of computation. |
opacity |
level of opacity, with default |
outlying |
logical indicating whether only outlying points should be plotted. Note the |
Value
A list with the following components is available:
alpha.bags |
list of coordinates for the |
col |
vector of colours for the |
lty |
vector of line types for the |
lwd |
vector of line widths for the |
References
Gower, J., Gardner-Lubbe, S. & Le Roux, N. (2011, ISBN: 978-0-470-01255-0) Understanding Biplots. Chichester, England: John Wiley & Sons Ltd.
Examples
biplot (iris[,1:4]) |> PCA(group.aes=iris[,5]) |> alpha.bags(alpha=0.95) |> plot()
biplot (iris[,1:4],group.aes=iris[,5]) |> PCA() |> alpha.bags(alpha=0.95) |> plot()