persp | R Documentation |
Perspective plot of a RasterLayer. This is an implementation of a generic function in the graphics package.
## S4 method for signature 'RasterLayer'
persp(x, maxpixels=1e+05, ext=NULL, ...)
## S4 method for signature 'RasterStackBrick'
persp(x, y=1, maxpixels=10000, ext=NULL, ...)
x |
Raster* object |
y |
integer |
maxpixels |
integer > 0. Maximum number of cells to use for the plot. If |
ext |
Extent. Can be used to zoom in to a region (see also |
... |
Any argument that can be passed to |
plot3D
, persp
, contour
, plot
r <- raster(system.file("external/test.grd", package="raster"))
persp(r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.