[R] Color points in princomp() plot

2014-04-28 Thread Noah Silverman
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

[R] Color points in princomp() plot

2014-04-28 Thread Noah Silverman
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

Re: [R] Color points in princomp() plot

2014-04-28 Thread David Winsemius
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

Re: [R] Color points in princomp() plot

2014-04-28 Thread Boris Steipe
At first I thought this is easy: use the same strategy you use for all of these types of questions. Plot with type=n to suppress output of points, then use points() or text() to get the colors and shapes and whatnot you need ... Turns out biplot() does not use a type argument ... ... and you