PCA.biplot {biplotEZ} | R Documentation |
Calculate elements for the PCA biplot
Description
This function performs calculations for the construction of 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.class.means = FALSE,
correlation.biplot = FALSE
)
Arguments
bp |
an object of class |
dim.biplot |
the dimension of the biplot. Only values |
e.vects |
the vector indicating which eigenvectors (principal components) should be plotted in the biplot, with default |
group.aes |
a vector of the same length as the number of rows in the data matrix for differentiated aesthetics for samples. |
show.class.means |
a logical value indicating whether group means should be plotted in the biplot. |
correlation.biplot |
a logical value. 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()