Learn R Programming

PLSbiplot1 (version 0.1)

PCA.biplot: The Principal Component Analysis (PCA) biplot

Description

Takes in a samples by variables data matrix and produces a PCA biplot.

Usage

PCA.biplot(D, method = NULL, ax.tickvec.D = NULL, ...)

Arguments

D
A samples by variables data matrix
method
the mod.PCA algorithm
ax.tickvec.D
tick marker length per axis in the PCA biplot
...
Other arguments. Currently ignored

Value

The PCA biplot of D with some parameters

Examples

Run this code
if(require(pls))
data(oliveoil, package="pls")
Dmat = as.matrix(oliveoil)  #(16x11) overall original data matrix
dimnames(Dmat) = list(paste(c("G1","G2","G3","G4","G5","I1","I2","I3","I4","I5",
"S1","S2","S3","S4","S5","S6")),
paste(c("Acidity","Peroxide","K232","K270","DK","Yellow",
"Green","Brown","Glossy","Transp","Syrup")))
PCA.biplot(D=Dmat, method=mod.PCA, ax.tickvec.D=c(8,5,5,7,6,4,5,5,8,7,7))

Run the code above in your browser using DataLab