3

My plot (with xyplot, lattice) looks like:

enter image description here

It looks pretty good, but how can I control the height of the grey panel-boxes?

I tried:

strip=strip.custom( par.strip.text=list(cex=2,lines=5,lineheight=2))

but this doesn't work.

zx8754
  • 52,746
  • 12
  • 114
  • 209
  • [How to make a great R reproducible example?](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) – zx8754 Oct 08 '15 at 09:48
  • Try with `xyplot(..., par.strip = list(lines = 2))`. –  Oct 08 '15 at 09:50

1 Answers1

3

You want to change the strip height:

library(lattice)
Depth <- equal.count(quakes$depth, number=8, overlap=.1)
xyplot(lat ~ long | Depth, data = quakes, par.strip = list(lines = 5, cex = 0.5))

enter image description here