[R] Lattice tick labels not all appearing

Deepayan Sarkar deepayan at stat.wisc.edu
Fri Feb 18 03:02:58 CET 2005


On Thursday 17 February 2005 16:16, Patrick Connolly wrote:
> Recently I've encountered a phenomenon that can be illustrated thus:
> > bwplot(runif(45)*100)
>
> Depending on the random seed, one or other or both of the outer tick
> labels are not labelled, even though there'd be heaps of space to do
> so.  The same happens with the postscript device.
>
> I can get them both to appear if I add an excessive xlim parameter
>
> like so:
> > bwplot(runif(25)*100, xlim = c(0, 100) + 7*c(-1,1))
>
> Stretching by anything less than 7 will generally not succeed.
>
> I'm sure this behaviour was not the case until recently.  For this
> example, it's not a big deal, but I often do multiple page plots that
> require different limits.  A more automatic way of making an
> adjustment would be a great find.

This was an experimental feature that didn't turn out that well. You can 
disable it by setting

> lattice.options("skip.boundary.labels" = 0)

2.1.0 should behave better.

Deepayan




More information about the R-help mailing list