Hello all,

   I just started in on R today. I am at the point where I am trying  
to distinguish different groups of data (hydrochemical data) in  
biplot. I search and found a post about converting the sample number  
in biplot to a symbol like x or +

"> temp <- matrix(runif(50), nrow=10)
 > temp.pca <- princomp(temp)
 > biplot(temp.pca, xlabs=c("A", "A", "B", "B", "B", "C", "C", "C",  
"D", "D"))"

When I try this:
 > biplot(pca,xlabs=c("X"))
Error in dimnames(x) <- list(xlabs, dimnames(x)[[2L]]) :
   length of 'dimnames' [1] not equal to array extent

I guess I am not understanding fully what xlabs is doing and what the  
array extent is. I was wondering if someone could clarify for me how  
to change the sample numbers to a symbol?

Also is there a way to color a group of data (i.e. samples 1-50) in  
biplot?

Thank you for your time and help,
ara


	[[alternative HTML version deleted]]

