circle.habitat: Define a circular habitat

Description Usage Arguments Value Examples

View source: R/habitat.R

Description

Define a circular habitat using an exponential decay function. The origin(0,0) has value 1, with habitat locations away from the origin decaying in value towards zero.

Usage

1
circle.habitat(x, y, b)

Arguments

x

x coordinate

y

y coordinate

b

Decay rate for any habitat location defined by the distance from origin (0,0)

Value

Habitat value for each location. This function is used in conjunction with as.im to produce an image that defines the habitat.

Examples

1
2
3
4
5
# Example circle habitat for a rectangular window.
# hab.win is the habitat window
hab.win <- owin(c(-50,50),c(-50,50),unitname="metres")
Z <- as.im(circle.habitat,hab.win,b=0.0005)
plot(Z)

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