Description Usage Arguments Details Value Examples
RasterLayer to contour lines. This is a wrapper around contourLines
1 | rasterToContour(x, maxpixels=100000, ...)
|
x |
a RasterLayer object |
maxpixels |
Maximum number of raster cells to use; this function fails when too many cells are used |
... |
Any argument that can be passed to |
Most of the code was taken from maptools::ContourLines2SLDF, by Roger Bivand & Edzer Pebesma
SpatialLinesDataFrame
1 2 3 4 5 6 | f <- system.file("external/test.grd", package="raster")
r <- raster(f)
x <- rasterToContour(r)
class(x)
plot(r)
plot(x, add=TRUE)
|
Loading required package: sp
[1] "SpatialLinesDataFrame"
attr(,"package")
[1] "sp"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.