| marrangeGrob {gridExtra} | R Documentation |
Interface to arrangeGrob that can dispatch on multiple pages
marrangeGrob(..., as.table = FALSE, clip = TRUE,
top = quote(paste("page", g, "of", pages)),
bottom = NULL, left = NULL, right = NULL)
... |
grobs |
as.table |
see arrangeGrob |
clip |
see arrangeGrob |
top |
see arrangeGrob |
bottom |
see arrangeGrob |
left |
see arrangeGrob |
right |
see arrangeGrob |
If the layout specifies both nrow and ncol, the list of grobs can be split in multiple pages. Interactive devices print open new windows, whilst non-interactive devices such as pdf call grid.newpage() between the drawings.
a list of class arrangelist
baptiste Auguie
## Not run:
require(ggplot2)
pl <- lapply(1:11, function(.x) qplot(1:10,rnorm(10), main=paste("plot",.x)))
ml <- do.call(marrangeGrob, c(pl, list(nrow=2, ncol=2)))
## interactive use; open new devices
ml
## non-interactive use, multipage pdf
ggsave("multipage.pdf", ml)
## End(Not run)