This function individually draws each path from a "Picture"
object.
picturePaths(picture, nr, nc,
col = "black",
fill = "light grey",
freeScales = FALSE,
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)
A "Picture"
object.
Number of rows of paths to draw.
Number of columns of paths to draw.
Colour of border drawn around each path.
Background colour drawn behind each path.
A boolean indicating whether each path should
be drawn on its own scale. If FALSE
, all paths
are drawn on a common scale. If TRUE
, xscale
and yscale
are ignored.
A numeric vector of length two indicating the minimum and maximum on the x-scale.
A numeric vector of length two indicating the minimum and maximum on the y-scale.
Function to draw a label on each path. If any value other than a function is specified, no labels are drawn.
A boolean indicating whether to use the graphical parameter information in the path.
Paul Murrell
grid.picture