plotPCA: 2D and 3D PCA scoreplots from a MAIT object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plotPCA.R

Description

This function takes a MAIT-class object containing information of the significant features in the data and performs 2D scoreplots (PC1 vs PC2, PC2 vs PC3 and PC1 vs PC3) saved as png files. Additionally it also performs an interactive 3D PCA scoreplot.

Usage

1
2
3
4
5
plotPCA (MAIT.object=NULL,
         Log=FALSE,
	 center=TRUE,
	 scale=TRUE,
	 plot3d=TRUE)

Arguments

MAIT.object

A MAIT-class object where significant features have already been found.

Log

Set to TRUE if the data should be plotted using the logarithm of the intensity.

center

Set to TRUE if the data should be centered around its mean. See scale.

scale

Set to TRUE if the data should be scaled. See scale.

plot3d

Boolean set to TRUE if a 3D PCA scoreplot should be plot.

Value

Three different PCA scoreplots are printed in three png files. One using PC1 vs PC2, another with PC1 vs PC3 and the last one with PC2 vs PC3. The files will be stored in the directory (working directory)/PCA_Scoreplots. Moreover, an interactive 3D PCA scoreplot is also generated through function PCAplot3d.

Author(s)

Francesc Fernandez, [email protected]

See Also

spectralAnova spectralTStudent

Examples

1
2
3
data(MAIT_sample)
MAIT<-spectralSigFeatures(MAIT,p.adj="fdr",parametric=TRUE)
MAIT<-plotPCA(MAIT,plot3d=FALSE)

MAIT documentation built on May 31, 2017, 11:38 a.m.