[R] Which cex to change in a trellis plot

Andy Bunn abunn at whrc.org
Fri Oct 14 17:52:39 CEST 2005


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




More information about the R-help mailing list