powered by
Scatterplot of the values of two SpatRaster layers
# S4 method for SpatRaster,SpatRaster plot(x, y, maxcell=100000, warn=TRUE, nc, nr, maxnl=16, smooth=FALSE, gridded=FALSE, ncol=25, nrow=25, ...)
s <- rast(system.file("ex/logo.tif", package="terra")) plot(s[[1]], s[[2]]) plot(s, sqrt(s[[3:1]]))
Run the code above in your browser using DataLab