Skip to content
Prev 317825 / 398506 Next

lattice 3x3 plot: force common y-limits accross rows and align x-axes

Boris:

If I understand you correctly, you wish to set panel limits by row. I
know of no "slick" way of doing this (others may), as what is in a row
can change depending on layout and how you determine the scale for the
rows' contents may depend on the application context.

So I would do it manually: First, outside of trellis, compute your
xlim and ylim values for each row as you desire. Then issue the
trellis call, with the relation="free" component in the scales = list,
Then just use the list form of the xlim and ylim argument to xyplot
with your precomputed limits.

-- Bert
On Mon, Feb 18, 2013 at 8:40 AM, Boris Vasiliev <bvasiliev at yahoo.com> wrote: