logical: bottom-left to top-right (TRUE) or top-left to bottom-right (FALSE)
respect
argument of gtable
clip
argument of gtable
nrow
argument of gtable
ncol
argument of gtable
widths
argument of gtable
heights
argument of gtable
top
optional string, or grob
bottom
optional string, or grob
left
optional string, or grob
right
optional string, or grob
padding
unit of length one, margin around annotations
newpage
open a new page
Details
Using marrangeGrob, if the layout specifies both nrow and ncol, the list of grobs can be split into multiple pages. On interactive devices print opens new windows, whilst non-interactive devices such as pdf call grid.newpage() between the drawings.
Value
arrangeGrob returns a gtable.
marrangeGrob returns a list of class arrangelist
Functions
arrangeGrob: return a grob without drawing
grid.arrange: draw on the current device
marrangeGrob: interface to arrangeGrob that can dispatch on multiple pages
Examples
library(grid)
grid.arrange(rectGrob(), rectGrob())
## Not run:
library(ggplot2)
pl <- lapply(1:11, function(.x) qplot(1:10, rnorm(10), main=paste("plot", .x)))
ml <- marrangeGrob(pl, nrow=2, ncol=2)
## non-interactive use, multipage pdf
ggsave("multipage.pdf", ml)
## interactive use; open new devices
ml
## End(Not run)