imageGrob: Create an Image
Description
Creates an array of nrow
by ncol
rectangles.Usage
imageGrob(nrow, ncol, cols, byrow=TRUE,
name=NULL, gp=NULL, vp=NULL)
Arguments
nrow, ncol
Number of rows/columns in the image.
cols
Colors for the cells of the image (will be recycled).
byrow
Logical value indicating whether colors should be
allocated to cells across rows or down columns.
name
A character name for the grob.
gp
A gpar
object containing graphical parameter settings
or NULL
.