Learn R Programming

move (version 1.0)

raster2contour: Convert raster to contour lines

Description

The function converts a raster object to a SpatialLinesDataFrame.

Usage

## S3 method for class 'RasterLayer':
raster2contour(x, ...)

Arguments

x
a RasterLayer or a DBBMM object
...
additional arguments that are passed on from other functions

Details

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

Examples

Run this code
load(system.file("extdata", "move.RData", package="move"), .GlobalEnv)
  raster2contour(leroydbbmm)

Run the code above in your browser using DataLab