# NOT RUN {
library(inlabru)
library(raster)
data(gorillas)
plotpts = plotsample(gorillas$nests,gorillas$boundary,x.ppn=0.4,y.ppn=0.4,nx=5,ny=5)
ggplot() +gg(plotpts$plots) +gg(plotpts$dets,pch="+",cex=2) +gg(gorillas$boundary)
# }
Run the code above in your browser using DataLab