Loadings: A function to visualize trait loadings onto discriminant...

Description Usage Arguments Value See Also Examples

View source: R/Loadings.R

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

1
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

pca, lda

Examples

1
2
3
data(Nuclei) 
data(Groups) 
Loadings(Nuclei, Groups, method=c("PCA", "LDA"))

multiDimBio documentation built on April 14, 2020, 5:41 p.m.