Skip to content
Prev 243019 / 398500 Next

moving xlabels in lattice

On 2010-11-25 07:00, statquant2 wrote:
Have a look at the possible height adjustments with

   trellis.par.get()$layout.heights

Likely candidates for adjustment are:
   xlab             (space for the label)
   axis.bottom      (space between axis and bottom)
   axis.xlab.bottom (space between axis, label, and bottom)

Then try

   xyplot(rnorm(10) ~ 1:10, xlab = "the x-label",
     par.settings = list(
       layout.heights = list(
         xlab = 3
   #     axis.xlab.padding = 3
   #     axis.bottom = 3
   )))

Comment/uncomment to suit.

Peter Ehlers