Skip to content
Prev 306081 / 398506 Next

grid: How to merge cells in grid.layout?

Bert Gunter <gunter.berton at gene.com> writes:
... but I will always have two sub-boxes instead of one single box below the
x-axis and to the left of the y-axis. In a single box for the axis labels, one
can easily center a label. But with two boxes, how do you determine the center
of both?
I know that, thanks for pointing it out. Unfortunately, there is no problem of
the above type mentioned (afaik), that's why I asked.
I might have described it unsufficiently, but you can do the above with layout()
[I used that trick in many plots before]. The above-mentioned two boxes would
get the same number, so would be treated as one plot region. I was hoping for
something similar with grid.layout. 

It is clear that you can always build your layout with "too many boxes" as a
rectangular region and only address those viewports where plotting should take
place. But I don't see how one could specify to plot in the center of two
adjacent boxes of the same sizes so that the content looks "centered" with
respect to both boxes (viewed as a single box).
Message-ID: <87obkwsrtr.fsf@sklar.v.cablecom.net>
In-Reply-To: <CACk-te1YwMvY+bu=oMYMHiaHoyYSoYz=WLwkaK0XuRP_=hOOBA@mail.gmail.com> (Bert Gunter's message of "Sun, 23 Sep 2012 07:54:30 -0700")