This function appends the biplot object with elements resulting from using the AoD method.

AoD(bp, classes=bp$classes, dist.func=NULL, dist.func.cat=NULL,
dim.biplot = c(2,1,3), e.vects = 1:ncol(bp$X), 
weighted = c("unweighted","weighted"), show.class.means = TRUE, 
axes = c("regression","splines"), ...)

Arguments

bp

an object of class biplot obtained from preceding function biplot().

classes

a vector of the same length as the number of rows in the data matrix with the class indicator for the samples.

dist.func

a character string indicating which distance function is used to compute the Euclidean embeddable distances between samples. One of NULL (default) which computes the Euclidean distance or other functions that can be used for the dist() function.

dist.func.cat

a character string indicating which distance function is used to compute the Euclidean embeddable distances between samples. One of NULL (default) which computes the extended matching coefficient or other functions.

dim.biplot

the dimension of the biplot. Only values 1, 2 and 3 are accepted, with default 2.

e.vects

the vector indicating which eigenvectors (canonical variates) should be plotted in the biplot, with default 1:dim.biplot.

weighted

a character string indicating the weighting of the classes. One of "unweighted" for each class to receive equal weighting or "weighted" for each class to receive their class sizes as weights.

show.class.means

a logical value indicating whether to plot the class means on the biplot.

axes

a character string indicating the type of biplot axes to be used in the biplot. One of "regression" or "splines".

...

more arguments to dist.func.

Value

Object of class biplot

Examples

biplot(iris[,1:4]) |> AoD(classes=iris[,5])
#> Object of class biplot, based on 150 samples and 4 variables.
#> 4 numeric variables.
#> 3 classes: setosa versicolor virginica 
# create a CVA biplot
biplot(iris[,1:4]) |> AoD(classes=iris[,5]) |> plot()