Generate SpatialPixels covering an inla.mesh
Generate SpatialPixels
covering an inla.mesh
pixels(mesh, nx = 150, ny = 150, mask = TRUE)
mesh |
An |
nx |
Number of pixels in x direction |
ny |
Number of pixels in y direction |
mask |
If logical and TRUE, remove pixels that are outside the mesh.
If |
SpatialPixelsDataFrame
covering the mesh
Fabian E. Bachl bachlfab@gmail.com
data("mrsea") pxl <- pixels(mrsea$mesh, nx = 50, ny = 50, mask = mrsea$boundary) ggplot() + gg(pxl, fill = "grey", alpha = 0.5) + gg(mrsea$mesh)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.