Description Usage Arguments Value Examples
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.
1 | circle.habitat(x, y, b)
|
x |
x coordinate |
y |
y coordinate |
b |
Decay rate for any habitat location defined by the distance from origin (0,0) |
Habitat value for each location. This function is used in conjunction with
as.im
to produce an image that defines the habitat.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.