Hi all,

I have run a pca and want to plot the samples multivariate space using the
sample numbers.  In addition, I would like to color code the sample numbers
by group, but can't find a way to color-code the sample numbers by group.

So, I have to do it in two separate steps:

plot(bulbil.pca, col=as.numeric(group.bulbil[,3]),
pch=as.numeric(group.bulbil[,3]))  # group.bulbil[,3] is grouping

plot(x_w,y_w,type="n")
text(x_w,y_w,labels=group.bulbil[,1]) ##group.bulbil[,1] contains sample
numbers

Is there a way to plot the sample numbers and color-code them on one graph?

Thanks for any help.

Wade

	[[alternative HTML version deleted]]

