PCA.biplot | R Documentation |
This function performs calculations for the construction of a PCA biplot.
## 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
)
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 |
an object of class PCA
, inherits from class biplot
.
biplot(iris[,1:4]) |> PCA()
# create a PCA biplot
biplot(data = iris) |> PCA() |> plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.