Skip to content
Prev 155251 / 398502 Next

Label 2 groups in PCA different colours

Hi,

I'm wanting to do a PCA on some data which is comprised of two different
groups (to see how well the groups are discriminated). Is there a way to
change the colour of the datapoints in a biplot so that I can easily see
which group is which (eg objects 1-100, red, 101-200, black).

Might be simple, but I'm new to R and can't seem to find how to do this.

Thanks.

Paul