powered by
Perspective plot of a SpatRaster. This is an implementation of a generic function in the graphics package.
# S4 method for SpatRaster persp(x, maxcells=100000, ...)
persp, contour, plot
persp
contour
plot
r <- rast(system.file("ex/elev.tif", package="terra")) persp(r)
Run the code above in your browser using DataLab