I have done a trial with a dataframe like this: one<-c(3,2,2) two<-c(a,b,b) data<-dataframe(uno,dos)
plot(data$one,col=data$two) and it plots perfect. If I try it with the code that i have post in the first message, selecting data1 and data2 as i nthis example, the plot is plotted, but all dots with the same color. Thanks for the answer but noone of the 3 topics is the root problem. -- View this message in context: http://r.789695.n4.nabble.com/R-GUI-plot-by-color-tp4710297p4710300.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.