# \donttest{
if (require(ggplot2, quietly = TRUE)) {
data("mrsea", package = "inlabru")
pxl <- fm_pixels(mrsea$mesh,
nx = 50, ny = 50, mask = mrsea$boundary,
format = "sp"
)
ggplot() +
gg(pxl, fill = "grey", alpha = 0.5) +
gg(mrsea$mesh)
}
# }
Run the code above in your browser using DataLab