Skip to content

Which cex to change in a trellis plot

2 messages · Andy Bunn, Deepayan Sarkar

#
Given:


foo <- data.frame(bar = rnorm(100),
                  fac1 = factor(rep(1:2, 50)),
                  fac2 =
factor(c(rep(c("a","b","SomethingReallyReallyReallyLong"), 33),"a")))
bwplot(bar~fac1|fac2, data = foo)

How do I change the size of the text for fac2? I need to make the
"SomethingReallyReallyReallyLong" label fit in the postscript device.
Changing the cex from 1 to 0.8 (to match $axis.text$cex) will do it. Which
trellis setting is it?

Thanks, Andy
#
On 10/14/05, Andy Bunn <abunn at whrc.org> wrote:
bwplot(bar~fac1|fac2, data = foo, par.strip.text = list(cex = .8))

Defaults are taken from trellis.par.get("add.text").

Deepayan