[R] PCA and gglot2

S Ellison S.Ellison at LGCGroup.com
Wed Jul 10 18:49:42 CEST 2013


> > The biplot present the data points as numbers. How can I 
> present the 
> > data point in color (depends on their group-column 5). I 
> was thinking 
> > about doing it using ggplot2 but I can not succeed. Any 
> idea how to do 
> > it?

Perhaps the post at
http://www.codesofmylife.com/2012/06/07/plotting-pca-results-with-ggplot2/

would help?
 
(as would googling "biplot in ggplot2", which is how I found it...)

Incidentally, if you want base graphics biplots with points and colour coding, you'd need to modify the biplot code a bit or roll your own. 

S Ellison


*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



More information about the R-help mailing list