[R] PCA and gglot2

ashz ashz at walla.co.il
Wed Jul 10 15:09:00 CEST 2013


I was trying as well as looking for an answer without success (a bit strange
since it should be an easy problem) and therefore I will appreciate you

My simple script is:
# Loadings data of 5 columns and 100 rows of data
pca1 <- princomp(data1[,1:4], score=TRUE, cor=TRUE)

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?


View this message in context: http://r.789695.n4.nabble.com/PCA-and-gglot2-tp4671225.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list