plotPCA: 2D and 3D PCA scoreplots from a MAIT object
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.
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.