Displaying 1 result from an estimated 1 matches for "bulbil".
Did you mean:
balbi
2008 Sep 10
1
Color coding plotted numbers
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?
T...