Re: [R] centre two graphs on one plot

2011-06-30 Thread Jim Lemon
On 06/30/2011 05:37 AM, chris20 wrote: Hi, I am trying to put together a biplot using symbols and different colours instead of text as points. Someone has previously suggested using this code: PC<- prcomp (iris[,1:4]) lambda<- PC$sdev * sqrt(nrow(PC$x)) plot (t(t(PC$x)/lambda),pch=16,col=as.nu

[R] centre two graphs on one plot

2011-06-29 Thread chris20
Hi, I am trying to put together a biplot using symbols and different colours instead of text as points. Someone has previously suggested using this code: PC <- prcomp (iris[,1:4]) lambda <- PC$sdev * sqrt(nrow(PC$x)) plot (t(t(PC$x)/lambda),pch=16,col=as.numeric(iris[,5])) par (new=T) Rot <- t(t