AoD {biplotEZ}R Documentation

Use the Analysis of Distance (AoD) method to construct the biplot

Description

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

Usage

AoD(bp, classes=bp$classes, Dmat=NULL, dist.func=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.

Dmat

the matrix of Euclidean embeddable distances between 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.

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])
# create a CVA biplot
biplot(iris[,1:4]) |> AoD(classes=iris[,5]) |> plot()


[Package biplotEZ version 2.0 Index]