Skip to content
Prev 268093 / 398502 Next

reflecting a PCA biplot

Something like

opar<- par(mfcol = c(1, 2))
z<- prcomp(USArrests, scale = TRUE)
biplot(z, cex = 0.5)
z$x[,1]<- -z$x[,1]
z$rotation[,1]<- -z$rotation[,1]
biplot(z, cex = 0.5, xlab = "-PC1")
par(opar)


perhaps?

Allan
On 09/08/11 13:57, Andrew Halford wrote: