Learn R Programming

RGraphics (version 2.0-14)

grid.imageFun: Draw an Image

Description

Draws an array of nrow by ncol rectangles.

Usage

grid.imageFun(nrow, ncol, cols, byrow=TRUE)

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.