Learn R Programming

move (version 2.1.0)

raster2contour: Convert raster to contour lines

Description

The function converts a ud(stack) object to a SpatialLinesDataFrame.

Usage

# S4 method for .UD
raster2contour(x, ...)
	# S4 method for .UDStack
raster2contour(x, ...)

Arguments

x

a DBBMM or DBBMMStack object, that includesa raster object

...

additional arguments that are passed on from other functions, most important being level which determines the contour level

Details

The raster2contour function creates a SpatialLinesDataFrame from a given raster or DBBMM object. This allows to re-project the contours to different projections.

See Also

getVolumeUD

Examples

Run this code
# NOT RUN {
data(leroydbbmm)
data(dbbmmstack)
raster2contour(leroydbbmm)
raster2contour(dbbmmstack)
raster2contour(dbbmmstack, level=c(.5,.95))
# }

Run the code above in your browser using DataLab