[R] [Lattice] Incrase the height of strips in Trellis plots

deepayan.sarkar at gmail.com deepayan.sarkar at gmail.com
Wed Sep 5 09:56:11 CEST 2007


On 9/5/07, Frede Aakmann Tøgersen <FredeA.Togersen at agrsci.dk> wrote:
> This should give you something close to what you want:
>
>
> xyplot(Petal.Length ~ Petal.Width | Species, iris,
>        strip = strip.custom(par.strip.text = list(cex = 2)),
>        par.settings = list(layout.heights=list(strip=1.45)))
>
> The par.settings argument alters locally the default par settings of lattice
> plots, see e.g. ?trellis.par.get and the ?xyplot about the par.settings
> argument.

Another possibility that predates par.settings (but is basically equivalent) is

xyplot(Petal.Length ~ Petal.Width | Species, iris,
       par.strip.text = list(lines = 2, cex = 2))

-Deepayan



More information about the R-help mailing list