Hi everyone,
I'm trying to customize a Trellis graph in a particular way and I can't
seem to be able to fugure it out. Here's the story.
I have two vectors of values (x, y) and two vectors of conditioning
variables (cond1, cond2). Let's say that the values of cond1 are always
either "A", "B" or "C" and that the values of cond2 are always either
"X", "Y" or "Z". When I run the following command:
xyplot(x~y|cond1*cond2)
a Trellis graph is created which consists of 9 panels (3x3). In this matrix
of panels, rows represent distinct values of cond1 and rows represent
distinct values of cond2.
However, I don't want the strips at all because they clutter the graph.
So I'm getting rid of them by passing strip=FALSE to xyplot().
Now comes the tricky part: I would like the names of the conditions
("A", "B", "X" and so on) to appear to the left of each plot matrix row
and above each column.
Is there a way to do this?
The text() command doesn't seem to work well with Trellis plots.
What are my other options?
And one last thing: is there a way to position the trellis axes
on the bottom and right side of the plot?
Thanks in advance
Ania Marczewska
|