R scripts to implement PCA, SVD, bi plot, dmodx plot, hotelling plot, tsquare plot