powered by
SpatialPixels
inla.mesh
Generate SpatialPixels covering an inla.mesh
pixels(mesh, nx = 150, ny = 150, mask = TRUE)
An inla.mesh object
Number of pixels in x direction
Number of pixels in y direction
If logical and TRUE, remove pixels that are outside the mesh. If mask is a Spatial object, only return pixels covered by this object.
mask
Spatial
SpatialPixels covering the mesh
# NOT RUN { data("mrsea") pxl = pixels(mrsea$mesh, nx = 50, ny = 50) ggplot() + gg(pxl) + gg(mrsea$mesh) # }
Run the code above in your browser using DataLab