Skip to content
Prev 306080 / 398506 Next

grid: How to merge cells in grid.layout?

Inline below.

On Sun, Sep 23, 2012 at 1:41 AM, Marius Hofert
<marius.hofert at math.ethz.ch> wrote:
Why don't the "layout.pos.row" and "layout.pos.col" arguments of
?viewport not do exactly what you appear to want? Perhaps I
misunderstand, but I think what you want to do is just create your
layout as above and then push the viewports you want by suitably
setting these arguments, and then just draw your plots.

 If you're serious about using grid, Murrell's Graphics book is
essential and probably will clarify these issues for you (better than
I can, anyway).
You appear to be mistaken. From ?grid.layout:

"This function must NOT be confused with the base R graphics function
layout. In particular, do not use layout in combination with Grid
graphics. The documentation for layout may provide some useful
information and this function should behave identically in comparable
situations. The grid.layout function has added the ability to specify
a broader range of units for row heights and column widths, and allows
for nested layouts (see viewport). "

Cheers,
Bert