
Last chance! 50% off unlimited learning
Sale ends in
This function makes a rectangular grid with use defined boundaries and probabilities of being stationary.
make.grid(
left = -180,
bottom = -90,
right = 180,
top = 90,
distance.from.land.allowed.to.use = c(-Inf, Inf),
distance.from.land.allowed.to.stay = c(-Inf, Inf),
plot = TRUE,
return.distances = FALSE,
probability.of.staying = 0.5
)
dataframe with coordinates(lon and lat) and probability.of.staying
- left boundary in degrees (-180 <= left <= 180)
- lower boundary in degrees (-90 <= bottom <= 90)
- right boundary in degrees (-180 <= right <= 180)
- top boundary in degrees (-90 <= right <= 90)
- define how far from the shore animal could occur. Unit - km, negative values are for inland and positive for offshore directions. Inf
stays for infinity
- define how far from the shore animal could stay stationary between twilights. Unit - km, negative values are for inland and positive for offshore directions. Inf
stays for infinity
show a plot of final grid.
- return distances to the shoreline
- assigned probability value for grid cells that do not satisfy distance.from.water.allowed.to.stay
Eldar Rakhimberdiev
Grid<-make.grid(left=-14, bottom=30, right=13, top=57,
distance.from.land.allowed.to.use=c(-Inf, Inf),
distance.from.land.allowed.to.stay=c(-Inf, Inf))
Run the code above in your browser using DataLab