Learn R Programming

MetStaT (version 1.0)

PCA.PlotLoadings: Loadings plot for the results of PCA.Calculate

Description

Allows the user to plot a loadings plot for two components.

Usage

PCA.PlotLoadings(pr.object, pcs = c(1, 2))

Arguments

pr.object
The result of PCA.Calculate.
pcs
Which principal components to use for plotting (eg. "1,2")

Value

Only the plot is returned.

Examples

Run this code
##Plot selected loadings after doing PerformAsca
## use the data matrix, 'ASCAX', and an experimental design matrix, 'ASCAF'.
data(ASCAdata)
ASCA <- ASCA.Calculate(ASCAX, ASCAF, equation.elements = "1,2,12", scaling = TRUE)

## plot the loadings of the first two principal components of the first factor
ASCA.PlotLoadings(ASCA, ee = "1", pcs="1,2")

Run the code above in your browser using DataLab