In PCA the variable contribution to the latent features is shown by plotting the loadings matrix V.
X = UV’
What exactly is the plotIndiv function in Mixomics showing for PLS-DA?
I tried plotting the loadings and loadings.star matrices in the PLS-DA output directly, but neither resemble the plotindiv output.
hi @jonas87,
The plotIndiv represents the components, not the loadings:
In PCA, you recalculate the components as U \Delta:
In PLS-DA we recalculate the components as t = Xa where a is normed and X is centered and scaled. I show the algorithm here for a PLS (generalisation of PLS-DA) to give you an idea:
Thank you Kim-Anh. I was able to reproduce the calculation of the plotvar values.
The use of Pearson corr between the X matrix and the matrix T of the x-scores, is this an invention of the mixOmics team? Is this described elsewhere in the litterature? Or if it’s your invention has this been adopted by others over the years?
Is it really equivalent to the PCA loadings plots? Variables close to each other are correlated, variables in opposite quadrants are inversely correlated and the further away from the origin the more they contribute to the corresponding latent components?
Could you give me the link to the full document that you gave the screenshot of?
PlotVar is not equivalent to plotLoadings, as you can see from the mathematical description on how to calculate the coordinates in plotVar, but the interpretation you give is correct (but double check with both plots, as they are complementary).
The screenshot I gave you is part of our book which is currently being written, it might be out in 2021 and will be announced on our website.