Re: [R] Which cex to change in a trellis plot

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Sat 15 Oct 2005 - 07:16:19 EST

On 10/14/05, Andy Bunn <abunn@whrc.org> wrote:
> 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?

bwplot(bar~fac1|fac2, data = foo, par.strip.text = list(cex = .8))

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

Deepayan



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Oct 15 07:21:46 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:54:37 EST