PCA.Rd
This function appends the biplot
object with elements resulting from performing PCA.
an object of class biplot
obtained from preceding function biplot()
.
the dimension of the biplot. Only values 1
, 2
and 3
are accepted, with default 2
.
the vector indicating which eigenvectors (principal components) should be plotted in the biplot, with default 1:dim.biplot
.
a vector of the same length as the number of rows in the data matrix for differentiated aesthetics for samples.
a logical value indicating whether group means should be plotted in the biplot.
a logical value. 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
.
An object of class PCA with the following elements:
the matrix of the centered and scaled numeric variables.
the data frame of the categorical variables.
the original data.
the vector of category levels for the class variable. This is to be used for colour
, pch
and cex
specifications.
the vector of observations that have been removed.
a logical value indicating whether \(\mathbf{X}\) is centered.
a logical value indicating whether \(\mathbf{X}\) is scaled.
the vector of means for each numerical variable.
the vector of standard deviations for each numerical variable.
the number of observations.
the number of variables.
the vector of category levels for the grouping variable. This is to be used for colour
, pch
and cex
specification.
the descriptive names to be used for group labels.
the number of groups.
the title of the biplot rendered.
the matrix with each row containing the details of the points that are plotted (i.e. coordinates).
the matrix for transformation to the principal components.
the inverse of \(\mathbf{L}\).
the vector of eigenvalues of the covariance matrix of \(\mathbf{X}\).
one unit in the positive direction of each biplot axis.
the vector indicating which principal components are plotted in the biplot.
the 1:dim.biplot
columns of \(\mathbf{V}\).
the dimension of the biplot.
a logical value indicating whether group means are plotted in the biplot.
the matrix of class mean coordinates that are plotted in the biplot.
Gabriel, K.R. (1971) The biplot graphic display of matrices with application to principal component analysis. Biometrika. 58(3):453–467.