Re: [R] problem with plotting table

2007-11-28 Thread Carlos Gershenson
Thank you very much Duncan, that did the works. Thank you also Gavin and Bernardo for your feedback. Best regards, Carlos __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-pr

Re: [R] problem with plotting table

2007-11-28 Thread Bernardo Rangel Tura
On Tue, 2007-11-27 at 13:01 -0500, Carlos Gershenson wrote: > Hi all, > > Let us have: > > x<-1:10 > y<-x/2 > plot(table(x), type="p") > points(table(y), pch=2) > > > Why does the last command plots the values of table(y) using the x > coordinates of table(x)??? > Am I doing something wrong?

Re: [R] problem with plotting table

2007-11-27 Thread Gavin Simpson
Duncan Murdoch wrote: > Carlos Gershenson wrote: >> Hi all, >> >> Let us have: >> >> x<-1:10 >> y<-x/2 >> plot(table(x), type="p") >> points(table(y), pch=2) >> >> >> Why does the last command plots the values of table(y) using the x >> coordinates of table(x)??? >> > > It's just a coincidenc

Re: [R] problem with plotting table

2007-11-27 Thread Duncan Murdoch
Carlos Gershenson wrote: > Hi all, > > Let us have: > > x<-1:10 > y<-x/2 > plot(table(x), type="p") > points(table(y), pch=2) > > > Why does the last command plots the values of table(y) using the x > coordinates of table(x)??? > It's just a coincidence. It's actually using the indices 1:10,

[R] problem with plotting table

2007-11-27 Thread Carlos Gershenson
Hi all, Let us have: x<-1:10 y<-x/2 plot(table(x), type="p") points(table(y), pch=2) Why does the last command plots the values of table(y) using the x coordinates of table(x)??? Am I doing something wrong? What would be a way of plotting the points of table(y) on their place? #this problem