marrangeGrob: marrangeGrob

Description Usage Arguments Details Value Author(s) Examples

Description

Interface to arrangeGrob that can dispatch on multiple pages

Usage

1
2
3
  marrangeGrob(..., as.table = FALSE, clip = TRUE,
    top = quote(paste("page", g, "of", pages)),
    bottom = NULL, left = NULL, right = NULL)

Arguments

...

grobs

as.table

see arrangeGrob

clip

see arrangeGrob

top

see arrangeGrob

bottom

see arrangeGrob

left

see arrangeGrob

right

see arrangeGrob

Details

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.

Value

a list of class arrangelist

Author(s)

baptiste Auguie

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

ttriche/oldGridExtra documentation built on June 1, 2019, 2:51 a.m.