Skip to content
Prev 26818 / 63424 Next

Problem with points/lines (PR#10472)

carlos at necsi.org wrote:
The real issue is that we have a plot method for tables, which tries to
be smart about using numerical entry names. There's no similar points
method, nor a lines method, so in those cases you get the default
method, namely to plot the table values (all ones) against the *index*,
i.e.,1:n. This shows the effect quite clearly:

plot(table(x^2)
lines(table(x))

(This is not a bug, since noone has promised you that lines and point
methods should exist. It could be taken as an enhancement request.)