Last chance! 50% off unlimited learning
Sale ends in
contour(x, ...)
contour
(graphics package)contour(x, y=1, maxpixels=100000, ...)
x
RasterLayer object
y
The layer number (integer > 0) if x is a RasterStack or RasterBrick
maxpixels
Maximum number of pixels used to create the contours
...
Any argument that can be passed to contour
(graphics package)
}persp
, filledContour
The rasterVis package has more advanced plotting methods for Raster* objects.r <- raster(system.file("external/test.grd", package="raster"))
plot(r)
contour(r, add=TRUE)
Run the code above in your browser using DataLab