Learn R Programming

grImport (version 0.1)

picturePaths: Draw Individual Picture Paths

Description

This function individually draws each path from a "Picture" object.

Usage

picturePaths(picture, nr, nc,
             bg = "light grey",
             xscale = NULL, yscale = NULL,
             label = function(n) {
               tg <- textGrob(n, x = 0, y = 0,
                              just = c("left", "bottom"),
                              gp = gpar(fontsize = 6))
               grid.rect(x = 0, y = 0,
                         height = unit(6, "points"),
                         width = grobWidth(tg),
                         just = c("left", "bottom"),
                         gp = gpar(fill = "white"))
               grid.draw(tg)
             }, use.gc = TRUE)

Arguments

picture
A "Picture" object.
nr
Number of rows of paths to draw.
nc
Number of columns of paths to draw.
bg
Background colour drawn behind each path.
xscale
A numeric vector of length two indicating the minimum and maximum on the x-scale.
yscale
A numeric vector of length two indicating the minimum and maximum on the y-scale.
label
Function to draw a label on each path.
use.gc
A boolean indicating whether to use the graphical parameter information in the path.

See Also

grid.picture