Loadings {multiDimBio} | R Documentation |
A function to visualize trait loadings onto discriminant function and principle component axes
Description
This function produces barplots representative of the contribution of a particular trait or variable to either a discriminant function or principle component axis.
Usage
Loadings(DATA, GROUPS, method = c("PCA", "LDA"))
Arguments
DATA |
A (non-empty) numeric matrix with trait values |
GROUPS |
A (non-empty)factor vector indicating the group membership of each row in DATA |
method |
An optional list indicating whether the results for a principle component analysis, 'PCA', or linear discriminant analysis, 'LDA' should be performed. |
Value
Outputs a list with values and plots for each test listed in method.
See Also
Examples
data(Nuclei)
data(Groups)
Loadings(Nuclei, Groups, method=c("PCA", "LDA"))
[Package multiDimBio version 1.2.2 Index]