I'm fitting Poisson counts models in inlabru and require the total area of the SpatialPixelsDataFrame to use for the abundance estimates of the model.
Is there a way for me to get the overall area?
I have tried using both:
ppxl@grid@cellsize[["x"]]*ppxl@grid@cellsize[["y"]]
ppxl@grid@cells.dim[["x"]]*ppxl@grid@cells.dim[["y"]]
to get the area of each pixel but neither way seems to be getting plausible abundance estimates so I am wondering whether there is something I am missing.