[R] problem with plotting table
Carlos Gershenson
carlos at necsi.org
Tue Nov 27 19:01:59 CET 2007
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 also occurs with:
plot(table(y), type="p")
points(table(x), pch=2)
Thank you very much,
Carlos
More information about the R-help
mailing list