On Thu, Mar 25, 2010 at 10:28 PM, Joaquin Rapela <rapela@usc.edu> wrote:

> Your reply was very useful Rich. Thanks!
>
> I would like to set the height of the viewport in draw.colorkey to match
> the
> height of the levelplots, as it is done when I add colorkeys to all the
> levelplots. The height of the levelplots varies depending on the number of
> levelplots that I put on the figure. Do you know of any method to obtain
> the
> height of the levelplots?
>
I can give you an outline of what you need.  The specifics take time.  Get
Deepayan Sarkar's
book and study his examples.  The index is complete, so you will find what
you are looking for.

The height argument to draw.colorkey needs to be given the height of the
previous three
panels.  You can get that from trellis.focus and current.panel.limits.  You
will need to convert
from the coordinate system of the panel to the coordinate system of the
viewport.  These are all
standard conversions that lattice or grid will do for you.

Rich

	[[alternative HTML version deleted]]

