customLayout (version 0.1.0)

layGrid: Use Layout object with grid graphics.

Description

Use Layout object with grid graphics.

Usage

layGrid(grobs, lay, ...)

Arguments

grobs

list of grobs.

lay

a Layout object.

...

other parameters passed to grid.arrange.

Examples

Run this code
# NOT RUN {
library(ggplot2)

l1 <- layCreate(matrix(1:2, ncol = 1), heights = c(2, 3))
l2 <- layCreate(matrix(1:2, ncol = 1), heights = c(1, 3))
l3 <- layColBind(l1, l2)

pl1 <- qplot(mpg, wt, data = mtcars)
pl2 <- qplot(mpg, gear, data = mtcars)
pl3 <- qplot(cyl, gear, data = mtcars)
pl4 <- qplot(qsec, am, data = mtcars)

layGrid(list(pl1, pl2, pl3, pl4), l3)

# }

Run the code above in your browser using DataLab