Learn R Programming

MetStaT (version 1.0)

ASCA.PlotLoadings: Loadings plot for a specific factor/interaction of the ASCA

Description

Allows the user to plot a single loadings plot for one factor or interaction (or for the SVD on the original data)

Usage

ASCA.PlotLoadings(asca, ee= "", pcs = c(1,2))

Arguments

asca
Results of a performed ASCA analysis
ee
Which factor or interaction to use (eg. "1", or "12", or leave empty to use the original data)
pcs
Which PCs (Principal Components) to use for plotting (eg. c1,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