PCA.biplot {biplotEZ} | R Documentation |
PCA biplot
Description
Performs calculations for a PCA biplot.
Usage
## S3 method for class 'biplot'
PCA(
bp,
dim.biplot = c(2, 1, 3),
e.vects = 1:ncol(bp$X),
group.aes = NULL,
show.group.means = FALSE,
correlation.biplot = FALSE
)
Arguments
bp |
an object of class |
dim.biplot |
dimension of the biplot. Only values 1, 2 and 3 are accepted, with default |
e.vects |
which eigenvectors (principal components) to extract, with default |
group.aes |
vector of the same length as the number of rows in the data matrix for differentiated aesthetics for samples. |
show.group.means |
logical, indicating whether group means should be plotted in the biplot. |
correlation.biplot |
logical, if |
Value
an object of class PCA, inherits from class biplot.
Examples
biplot(iris[,1:4]) |> PCA()
# create a PCA biplot
biplot(data = iris) |> PCA() |> plot()
[Package biplotEZ version 1.2.0 Index]