Description Usage Arguments Value Examples
Define a habitat locations within a window using a density function. The maximum value is 1, and the minimum value in the habitat is set by the argument min.d.
1 | circle.pts.density(x, y, hab.win, min.d = 0.7, ...)
|
x |
x coordinates defining the point locations |
y |
y coordinates of point locations |
hab.win |
The habitat window as an owin object |
min.d |
Minimum value of final habitat map. |
... |
Additional arguments to density.ppp |
Habitat value for each location as an im object (as.im
).
This can be used as the habitat window in spatibm.
1 2 3 4 5 6 7 8 9 | # Example habitat with 3 good habitat locations.
# hab.win is the habitat window. Minimum value is 0.7
hab.win <- owin(c(-50,50),c(-50,50),unitname="metres")
Use 3 point locations within the -50x50 window
x = c(-20,0,20)
y = c(-20,0,20)
# Note that Z is type im, and sigma,edge are arguments to the density.ppp function.
Z <- circle.pts.density(x,y,hab.win,min.d=0.7,sigma=2,edge=FALSE)
plot(Z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.