Re: [R] R GUI plot by color

2015-07-27 Thread jpara3
Ok, I will take it into account in the future. Thanks!! -- View this message in context: http://r.789695.n4.nabble.com/R-GUI-plot-by-color-tp4710297p4710382.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mail

Re: [R] R GUI plot by color

2015-07-26 Thread Robert Baer
On 7/24/2015 6:23 AM, Jim Lemon wrote: Hi jpara3, Your example, when I got it to go: one<-c(3,2,2) two<-c("a","b","b") data<-dataframe(one,two) plot(data$one,col=data$two) Wow Jim. Psychic indeed! Not only did you answer with NO reproducible example, but on round 2 you fixed a non-working ex

Re: [R] R GUI plot by color

2015-07-24 Thread jpara3
Yes, you were right!! Thanks. -- View this message in context: http://r.789695.n4.nabble.com/R-GUI-plot-by-color-tp4710297p4710320.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

Re: [R] R GUI plot by color

2015-07-24 Thread Jim Lemon
Hi jpara3, Your example, when I got it to go: one<-c(3,2,2) two<-c("a","b","b") data<-dataframe(one,two) plot(data$one,col=data$two) does indeed work, and I'll explain how. You are plotting the values of data$one against the _values_ of data$two (see point 3 of my response). In this case, the val

Re: [R] R GUI plot by color

2015-07-24 Thread jpara3
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

Re: [R] R GUI plot by color

2015-07-24 Thread Jim Lemon
Hi jpara3, Hmmm. It's becoming clearer, yes I think the answer is emerging from the swirling clouds of uncertainty. 1) The column names of data2 are not numbers 2) The number of columns in data2 is not equal to the number of values in data1 that you are plotting 3) You probably want to plot colo

[R] R GUI plot by color

2015-07-24 Thread jpara3
Hi, I want to do a plot from a variable (which i select from a listbox) with the color factor of the variable that i have selected from another listbox. To be not very heavy pasting all the code, i will only paste real important parts: "data1" and "data2" are the extacted parts of the dataframe