Learn R Programming

multiDimBio (version 1.2.5)

Loadings: 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"))

Value

Outputs a list with values and plots for each test listed in method.

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.

See Also

pca, lda

Examples

Run this code
data(Nuclei) 
data(Groups) 
Loadings(Nuclei, Groups, method=c("PCA", "LDA"))

Run the code above in your browser using DataLab