Re: [R] levelplot question

From: Pedro Mardones <>
Date: Mon, 23 Jun 2008 20:18:58 -0400

thanks for the replies, however z1 (range 300-800) and z2 (range 0-50) are measured in different units and scales and the approach suggested by Bert and Deepayan creates a single colorkey (0-800) and some of the plots for z2 really don't show there any way to specify separate colorkeys for the 2 rows of plots?

On Mon, Jun 23, 2008 at 6:59 PM, Deepayan Sarkar <> wrote:
> On 6/23/08, Pedro Mardones <> wrote:
>> Dear all;
>> I have a data set with 3 groups and 2 response variables, say z1 and
>> z2, and I would like to create a single plot (using the levelplot
>> function) showing on the first row the leveplots for z1 for each group
>> and on the second row levelplots for z2 for the same groups. I tried
>> plot.trellis using the split option and it's OK but what I would like
>> to achieve is something similar to what you can get in the case that
>> you'd have 6 groups and only one response, i.e., 3 plots on the first
>> row, 3 in the second and no space between the first and 2nd rows
>> (...something like levelplot(z~x+y/group, where group=1,...,6).....).
>> The first row must have associated the levels corresponding to z1 and
>> the second row the levels of z2. Does anyone know if this is possible
>> to do with lattice?
> Maybe something like
> levelplot(z1 + z2 ~ x + y | group)
> (where group has 3 levels).
> -Deepayan
> mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 24 Jun 2008 - 00:23:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 24 Jun 2008 - 00:31:09 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive