Rsurface(mask, sigma, usecov = NULL, alpha2 = 1, detectfn = 'HHN', z = 1,
inverse = FALSE, scale = TRUE)
scale = FALSE
; otherwise it is the average of the
resource over the masked area.detectfn
may be uniform (usecov
is not named then it takes the value 1.0 for all points
on the mask and zero otherwise.
The Rsurface can be used implicitly to normalize detection probability when
fitting a model with detector-specific covariate equal to
usecov
(see details, but the process is intricate and not
fully documented).mask
, plot.Rsurface
,
spotHeight
, details## create binary covariate (0 outside habitat)
msk <- make.mask(traps(possumCH), buffer = 800)
covariates(msk) <- data.frame(z = as.numeric(pointsInPolygon
(msk,possumarea)))
## derive and plot "resource availability"
Rs <- Rsurface(msk, sigma = 100, usecov = 'z')
plot(Rs, plottype = 'contour', col = topo.colors(10))
lines(possumarea)
spotHeight(Rs, dec = 2)
Run the code above in your browser using DataLab