CVA.biplot {biplotEZ} | R Documentation |
Calculate elements for the CVA biplot
Description
This function performs calculations for the construction of a CVA biplot.
Usage
## S3 method for class 'biplot'
CVA(
bp,
classes = bp$classes,
dim.biplot = c(2, 1, 3),
e.vects = 1:ncol(bp$X),
weightedCVA = "weighted",
show.class.means = TRUE,
low.dim = "sample.opt"
)
Arguments
bp |
an object of class |
classes |
a vector of the same length as the number of rows in the data matrix with the class indicator for the samples. |
dim.biplot |
the dimension of the biplot. Only values |
e.vects |
the vector indicating which eigenvectors (canonical variates) should be plotted in the biplot, with default |
weightedCVA |
a character string indicating which type of CVA to perform. One of " |
show.class.means |
a logical value indicating whether to plot the class means on the biplot. |
low.dim |
a character string indicating which method to use to construct additional dimension(s) if the dimension of the canonical space is smaller than |
Value
an object of class CVA
, inherits from class biplot
.
Examples
biplot(iris[,1:4]) |> CVA(classes=iris[,5])