vguillemot/ARMR

loadings.2 / loadings.as.correlation different orientation than loadings.1 and loadings.3

Closed this issue · 1 comments

In PCAplot.R, loadings.1 (loadings.as.inertia) and loadings.3 (loadings.as.weights) have rows representing variables and columns representing dimensions. loadings.2 (loadings.as.correlation) is flipped to have rows representing dimensions and columns representing variables.
It appears that loadings.2 is transposed when it is created in line 194, and then is repeatedly transposed back throughout the rest of the function, such as line 666, line 687, and line 710.

Am I good to switch loadings.2 to a variable by dimensions matrix and undo all the transposing, or was there a specific reason it was written this way? @juchiyu @vguillemot

Thanks!

I've taken out all the t() calls as discussed over Zoom. loadings.2 is now variables by dimensions like the rest.