Skip to contents

grid_add_lines() draws lines along the components of a print-and-play layout.

Usage

grid_add_lines(..., layout = "poker_3x3", gp = gpar())

Arguments

...

Ignored for now.

layout

Either a layout preset name in layout_names() or a data frame with layout data (as returned by layout_grid()).

gp

Passed to grid::grid.segments().

Value

NULL invisibly. As a side effect draws lines to the active graphics device.

Details

  • This function draws in inches so make sure your graphics device is "big" enough.

Examples

grid::grid.newpage()
vp <- grid::viewport(width=8.5, height=11, default.units="in",
                     x=0.0, y=0.0, just=c("left", "bottom"))
grid::pushViewport(vp)
grid_add_lines(layout = "poker_3x3",
               gp = grid::gpar(lty = "dashed", col = "grey"))
grid::popViewport()