R/draw_raster.R

Defines functions draw_raster

draw_raster <- function(grob, i, j) {
  grid::pushViewport(grid::viewport(layout.pos.col = j, layout.pos.row = i))
  grid::grid.draw(grob)
  grid::popViewport()
}

Try the minesweeper package in your browser

Any scripts or data that you put into this service are public.

minesweeper documentation built on April 3, 2025, 9:29 p.m.