I have a point pattern object (ppp) i.e. dataset comprising the geographic coordinates of certain positions. For example:
> data(bei)
> df1<-as.data.frame(bei)
> View(df1)
> head(df1)
x y
1 11.7 151.1
2 998.9 430.5
3 980.1 433.5
4 986.5 425.8
5 944.1 415.1
6 940.5 410.4
Now, I would like to fit a small bounding box of some dimension over each points in the ppp object and compute its area. How to do this using spatstat?
Or should I pixellate the ppp object? In that case, how to get the pixel area?