grobMatrix {ggplot2}R Documentation

Build grob matrix

Description

Build a matrix of grobs given a vector of grobs and the desired dimensions of the matrix

Usage

grobMatrix(vec, nrow, ncol, as.table = FALSE)

Arguments

vec

vector of grobs

nrow

number of rows

ncol

number of columns

as.table

should the matrix be arranged like a table or a plot

Details

Any missing cells at the end will be filled in with zeroGrobs.

Author(s)

Hadley Wickham <h.wickham@gmail.com>


[Package ggplot2 version 0.8.9 Index]