[R] Color points in princomp() plot
David Winsemius
dwinsemius at comcast.net
Tue Apr 29 00:40:23 CEST 2014
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
More information about the R-help
mailing list