Hi, Thanks. Fig 4 in the link you provided is what I am looking for.
I still do not know how to implement my data1 and pca1 in the script you provided as I think it is only a part of a full script. " data1<-read.csv("C:/…/MyPCA.csv") pca1 <- princomp(data1[,1:4], score=TRUE, cor=TRUE) " Am I right, how can I implement my data.frames? Thanks again -- View this message in context: http://r.789695.n4.nabble.com/PCA-and-gglot2-tp4671225p4671237.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.