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
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?
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
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,
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
5 matches
Mail list logo