Skip to content
Back to formatted view

Raw Message

Message-ID: <200402170835.15587.deepayan@stat.wisc.edu>
Date: 2004-02-17T14:35:15Z
From: Deepayan Sarkar
Subject: Lattice graphics and strip function
In-Reply-To: <000901c3f53b$a7bccdf0$903701a3@politics.ox.ac.uk>

On Tuesday 17 February 2004 03:51, Luke Keele wrote:
> I am looking for examples of code that demonstrates the
> fine tuning of the strip panels in lattice graphics and
> uses plotmath characters.  The code for the graphic is as
> follows:
>
>
>
> xyplot(lagy ~ n | rho1 * rho2, data= data, layout=c(2,6),
> span = 1,
>
> xlab = "Sample Size", ylab = "Bias in the Coefficient for
> the Lag of X",
>
> type = "o")
>
>
>
> rho1 is a four level factor and rho2 is a three level
> factor.
>
>
>
> The problem is that I want to use plotmath characters in
> the strips, but using the strip = function the best I so
> far have been able to do is change all the strip labels
> to the same character instead of it varying as the
> factors do.  Since I am using plotmath characters I am
> unable to change how R designates the factors which would
> be the easiest solution. I have read the documentation
> several times and am unable to decipher how to set the
> parameters for the strip function.

See the last example in demo(lattice). You probably want to 
use the factor.levels argument of strip.default.

Hth,

Deepayan