[R] pca biplot.princomp has a bug?

2012-04-25 Thread Michael
x=rmvnorm(2000, rep(0, 6), diag(c(5, rep(1,5 x=scale(x, center=T, scale=F) pc - princomp(x) biplot(pc) There are a bunch of red arrows plotted, what do they mean? I knew that the first arrow labelled with Var1 should be pointing the most varying direction of the data-set (if

Re: [R] pca biplot.princomp has a bug?

2012-04-25 Thread Kevin Wright
The arrows are not pointing in the most-varying direction of the data. The principal components are pointing in the most-varying direction of the data. But you are not plotting the data on the original scale, you are plotting the data on the rotated scale, and thus the horizontal axis is the