circle.pts.density: Define a set of circular point habitats

Description Usage Arguments Value Examples

View source: R/habitat.R

Description

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.

Usage

1
circle.pts.density(x, y, hab.win, min.d = 0.7, ...)

Arguments

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

Value

Habitat value for each location as an im object (as.im). This can be used as the habitat window in spatibm.

Examples

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)

pwhigham/spatibm documentation built on Aug. 30, 2019, 1:16 p.m.