Learn R Programming

terra (version 1.9-11)

image: SpatRaster image method

Description

Plot (make a map of) the values of a SpatRaster via image. See plot if you need more fancy options such as a legend.

Usage

# S4 method for SpatRaster
image(x, y=1, maxcell=500000, ...)

Arguments

See Also

Examples

Run this code
f <- system.file("ex/elev.tif", package="terra") 
r <- rast(f)
image(r)
image(r, col=rainbow(24))

Run the code above in your browser using DataLab