Learn R Programming

terra (version 1.8-80)

persp: Perspective plot

Description

Perspective plot of a SpatRaster. This is an implementation of a generic function in the graphics package.

Usage

# S4 method for SpatRaster
persp(x, maxcells=100000, ...)

Arguments

See Also

persp, contour, plot

Examples

Run this code
r <- rast(system.file("ex/elev.tif", package="terra"))
persp(r)

Run the code above in your browser using DataLab