contour: Contour plot

Description Usage Arguments See Also Examples

Description

Contour plot of a RasterLayer.

Usage

1
2
## S4 method for signature 'RasterLayer'
contour(x, maxpixels=100000, ...)

Arguments

x

Raster* object

maxpixels

maximum number of pixels used to create the contours

...

any argument that can be passed to contour (graphics package)

See Also

persp, filledContour, rasterToContour

Examples

1
2
3
r <- raster(system.file("external/test.grd", package="raster"))
plot(r)
contour(r, add=TRUE)

Example output

Loading required package: sp

raster documentation built on Oct. 12, 2021, 1:06 a.m.