On Apr 28, 2014, at 2:41 PM, Noah Silverman wrote: > Hi, > > The princomp() function has a nice method to generate a pretty biplot of > the data. I have some data where the points are divided into a few > groups. My intention is to generate a biplot, using princomp, but color > the points based on group membership. The hope is that points will show > some kind of clustering by group in the biplot. > > However, I can't figure out how to indicate individual point color in a > biplot. The only setting I found was to indicate a single color for > *all* the points. > > Any ideas?
Offer some code? The help page says you can provide a vector for coloring sets of points. > [[alternative HTML version deleted]] And when you do offer code it should be with plain text format. -- David Winsemius Alameda, CA, USA ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.