contourLines
rasterToContour(x, maxpixels=100000, ...)
contourLines
f <- system.file("external/test.grd", package="raster")
r <- raster(f)
x <- rasterToContour(r)
class(x)
plot(r)
plot(x, add=TRUE)
Run the code above in your browser using DataLab