Skip to content
Prev 366828 / 398502 Next

graphical behavior of a table of numbers

Rich:

Simpler: Just lose the "table" class.

plot(as.numeric(names(fr)), as.vector(fr),  type="h",
            xlab="Determinant", ylab="Frequency")


However, I'm no less puzzled by the "strange" behavior than you.

In addition, it's probably worth noting that xyplot in lattice (and no
doubt ggplot,too) does not have this problem (as I'm sure you know):

xyplot(fr ~ as.numeric(names(fr)),  type="h",
            xlab="Determinant", ylab="Frequency")


Cheers,
Bert
Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Sat, Jan 28, 2017 at 3:03 PM, Richard M. Heiberger <rmh at temple.edu> wrote: