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 biplot obtained from preceding function biplot().

dim.biplot

dimension of the biplot. Only values 1, 2 and 3 are accepted, with default 2.

e.vects

which eigenvectors (principal components) to extract, with default 1:dim.biplot.

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 FALSE, the distances between sample points are optimally approximated in the biplot. If TRUE, the correlations between variables are optimally approximated by the cosine of the angles between axes. Default is FALSE.

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]