PCA: Produce a PCA object.

Description Usage Arguments Value Examples

Description

PCA defines and produces a PCA object. See plot.PCA for plotting instructions.

Usage

1
PCA(SVobj, scale = F)

Arguments

SVobj

A samVec object containing data and other information.

scale

A bool value indicating whether scaling is used or not?

Value

A PCA object is returned, which is list containing:

pcx1

A matrix containing the first principle conponent.

pcx2

A matrix containing the second principle conponent.

colInd

A list of vector of integers containing relative indexes of columns.

labels

A vector of characters, integers or short string marking the groups.

dataType

A long string containing useful information of the data.

nGroup

An interger indicating the number of groups specified by selCol.

nCol

An integer indicating the number of columns of data.

nRow

A integers indicating the number of rows of data.

Examples

1
2
3
4
data(GCwPADataA)
testset = samVec(GCwPADataA, selCol = list(1:5, 11:15, 21:25), labels = c("E", "R", "T"))
pca1 = PCA(testset)
plot(pca1, mainPar = list(labels = "Example", y = 1.55), pcaPar = list(cex = 1, font = 2))

ziyanyin/DEEE documentation built on May 4, 2019, 11:23 p.m.