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 bylayout_grid()).- gp
Passed to
grid::grid.segments().
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()