Without taking away all the fun of trial and error, and exploration in R... I will direct you to this website which I found invaluable when I first began to use R.
one way would be to use: plot(Yourdata, type="n") and then 3 text() or points() statements to plot the groups represented by different colors. Good luck! SHAFI wrote > > Hi > > This has a simple answer but it has been eluding me nonetheless. > > I have been trying to build a PCA plot from scratch with the ability to > plot predefined groups in different colors. I can plot PCA but I want it > to plot with predefined groups(samples) with top 100 expressed genes. I > have three groups. Can any body help me keeping in mind that the user is > just beginner in R. > > Thanks in advance > -- View this message in context: http://r.789695.n4.nabble.com/PCA-in-predefined-Groups-tp4462536p4462765.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.