Hi,

I am trying to plot the score plot of the first 2 PCs. 
I used the following commands for plotting:

plot(PCA, main="PCA" )
colors=c(rep("red",10), rep("green",10))
text(PCA,labels =' ',col = colors )

However, in the text command line, if I use the above command, it only plots those points without any colors. What I wanna plot is that the first 10 samples plotted in blue squares, the other 10 samples plotted in magenta dots, how to do this? 

Thanks,

James






 
---------------------------------

	[[alternative HTML version deleted]]

