Learn R Programming

MetStaT (version 1.0)

ASCA.PlotScoresPerLevel: ASCA scores plot with projected data.

Description

Plots the ASCA scores with projected data for a selected factor or interaction.

Usage

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

Arguments

asca
results of a performed ASCA analysis
ee
which factor/interaction to use (eg. "1" or "12")
pcs
which PCs to use for plotting (eg. "1,2")

Value

Only the plot is returned

References

Gooitzen Zwanenburg, Huub C.J. Hoefsloot, Johan A. Westerhuis, Jeroen J. Jansen and Age K. Smilde, ANOVA principal component analysis and ANOVA simultaneous component analysis: a comparison. J Chemometrics, 25, (2011), p. 561 - 567

Examples

Run this code
##Plot the results 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 scores for the first two principal components and the projections of 
## the data for the second factor
ASCA.PlotScoresPerLevel(ASCA, ee = "2", pcs = "1,2")

Run the code above in your browser using DataLab