raster2contour | R Documentation |
The function converts a raster UD(stack) object to a SpatialLinesDataFrame. This allows to re-project the contours to different projections.
## S4 method for signature '.UD'
raster2contour(x, ...)
## S4 method for signature '.UDStack'
raster2contour(x, ...)
x |
a |
... |
additional arguments, like |
The contour function creates a shape of the area in which the animal can be found by a certain probability (i.e. the 90% contour describes the area in which the animal can be found with the 90% probability).
One or several probabilities can be set with levels
(numeric or vector of values between 0 and 1). If no value is set all contour lines are returned.
You can also use nlevel
to set a number of fixed distance levels.
The raster2contour
function creates a SpatialLinesDataFrame from the input raster object. This allows to re-project the contours to different projections.
'SpatialLinesDataFrame
'
Marco Smolla & Anne Scharf
getVolumeUD
, contour
, outerProbability
data(leroydbbmm)
data(leroydbgb)
data(dbbmmstack)
## from a DBBMM object
(cont1 <- raster2contour(leroydbbmm))
plot(cont1)
## from a dynBGB object
(cont2 <- raster2contour(leroydbgb, level=.95))
plot(cont2)
## from a DBBMMStack object
(cont3 <- raster2contour(dbbmmstack))
plot(cont3)
(cont4 <- raster2contour(dbbmmstack, level=c(.5,.95)))
plot(cont4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.