Skip to content
Prev 366865 / 398502 Next

graphical behavior of a table of numbers

I still think

plot(fr, xlab="Determinant", ylab="Frequency")

has a totally non-intuitive x-axis.

I recommend that the example in R-intro.pdf include an additional
sentence and option.


## In this example, where the x-axis is the entire set of integers -81:81,
## displaying them as an ordinary numeric axis might be preferable, in
which case use
   plot(fr, xlab="Determinant", ylab="Frequency", xaxt="n")
   axis(1)


While thinking on this, I looked at ?plot.table
The example
     plot(table(state.division))
doesn't display most of the labels, and I think it therefore not a good example.
I recommend revising it, perhaps to
    old.oma <- par(oma=c(6,1,0,1));
    plot(table(state.division), las=2, mgp=c(.5,2,0))
    par(old.oma)
I agree the code for the legible labels is difficult to read.

Rich

On Mon, Jan 30, 2017 at 10:59 AM, Martin Maechler
<maechler at stat.math.ethz.ch> wrote: