joannawolthuis / MetaboShiny

Repository for MetaboShiny, a novel R and RShiny based metabolomics data analysis package.
https://www.biorxiv.org/content/10.1101/734236v1
Apache License 2.0
15 stars 9 forks source link

PLSDA PC order correct? #7

Closed stefaniamagg closed 5 years ago

stefaniamagg commented 5 years ago

The PCA plot that was created by the PLSDA showes PC2 with a higher percentage than PC1.

screen shot 2018-09-28 at 14 18 48
joannawolthuis commented 5 years ago

PLSDA funnily enough is like that, see:

explained_variance (as seen in axes): amount of variance explained per component (note that contrary to PCA, this amount may not decrease as the aim of the method is not to maximise the variance, but the covariance between X and the dummy matrix Y).

https://rdrr.io/cran/mixOmics/man/plsda.html

stefaniamagg commented 5 years ago

Ahh, right!