I am experiencing a strange phenomenon. I am doing a PCA on data extracted from GPS coordinates and coinciding bioclimatic variable raster data. I do the analysis in R (64 bit) at my university. Then, when I do the exact same thing at home R (32 bit), the signs of my scores and loadings of PC1 are exactly opposite!
Here is the code (very straightforward):
D = data[,-c(1,2)] #because I don't want to include the lat $ long fields
pca = princomp(D, cor=TRUE)
biplot(pca)
Here are the biplots from the two different R's (both version 3.0.2 and the exact same code!)(Sorry I can't post images)
- https://drive.google.com/file/d/0B9p9zSVpNxNlMEF6eVc4MkJUanM/edit?usp=sharing
- https://drive.google.com/file/d/0B9p9zSVpNxNlSk9mRkh4c19TYWM/edit?usp=sharing
Apart from that they tell the same story (albeit from a different angle), why might this be happening?