PCAnalysis: Class PCAnalysis

Description Usage Arguments Details Value Author(s) Examples

View source: R/PCAnalysis.R

Description

Class PCAnalysis contains methods for simple PCA analyis

PCAnalysis is a PCA constructor function

Usage

1
2
3
PCAnalysis(dataObject, nComp, ...)

PCAnalysis(dataObject, nComp, ...)

Arguments

dataObject

object of type MassImage

nComp

integer number of components

...

further args

Details

Class PCAnalysis contains methods for simple PCA analysis

PCAnalysis constructor function uses call by reference. The new object is put into the analysis slot of the dataObject on which PCA was calculated.

Value

PCAnalysis class object

Author(s)

Lorenz Gerber <lorenz.gerber@slu.se>

Examples

1
2
3
4
5
6
7
8
9
testImage<-MassImage('dummy')
testImage<-PCAnalysis(testImage, 4)
image(analysis(testImage, 1), comp = 1)
## Not run: 
library(tofsimsData)
data(tofsimsData)
testImage<-PCAnalysis(testImage, nComp = 4)
image(analysis(testImage, 1), comp = 1)
## End(Not run)

tofsims documentation built on May 31, 2017, 3:17 p.m.

Search within the tofsims package
Search all R packages, documentation and source code