A Panpca
object is returned from this function. This is a small (S3) extension of
a list
with elements Evar, Scores, Loadings, Scale and Weights.
Evar is a vector with one number for each principal component. It contains the relative
explained variance for each component, and it always sums to 1.0. This value indicates the importance of
each component, and it is always in descending order, the first component being the most important.
The Evar is typically the first result you look at after a PCA has been computed, as it indicates
how many components (directions) you need to capture the bulk of the total variation in the data.
Scores is a matrix with one column for each principal component and one row for each genome. The
columns are ordered corresponding to the elements in Evar. The scores are the coordinates of
each genome in the principal component space. See plotScores
for how to visualize genomes
in the score-space.
Loadings is a matrix with one column for each principal component and one row for each gene
cluster. The columns are ordered corresponding to the elements in Evar. The loadings are the
contribution from each original gene cluster to the principal component directions. NOTE: Only gene
clusters having a non-zero variance is used in a PCA. Gene clusters with the same value for every
genome have no impact and are discarded from the Loadings. See plotLoadings
for
how to visualize gene clusters in the loading space.
Scale and Weights are copies of the corresponding input arguments.
The generic functions plot.Panpca
and summary.Panpca
are available for Panpca
objects.