This might be very simple but I have spent quite a lot of time trying to figure it out without any luck, maybe anyone can help me.
I have point pattern model fitted through the ppm() function in spatstat, (reproducible code below) and when I plot the residuals it automatically plots the points over the residuals image, which makes it very difficult to see anything. Does anyone know how to avoid it?
code:
library(spatstat)
pattern <- rpoispp(300)
cov <- rnoise(rgen = rnorm, dimyx=32, mean=2, sd=1, w = pattern$window)
fit <- ppm(pattern ~ cov)
res <- residuals.ppm(fit, type = "raw")
plot(res, how = "imagecontour")