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, gridded=FALSE, ncol=25, nrow=25, ...)
SpatRaster
positive integer. Maximum number of cells to use for the plot
positive integer. Optional. The number of columns to divide the plotting device in (when plotting multiple layers)
positive integer. Optional. The number of rows to divide the plotting device in (when plotting multiple layers)
postive integer. Maximum number of layers to plot (for multi-layer objects)
logical. If TRUE the scatterplot is gridded (counts by cells)
TRUE
boolean. Show a warning if a sample of the pixels is used (for scatterplot only)
positive integer. Number of columns for gridding
positive integer. Number of rows for gridding
additional graphical arguments
# NOT RUN { s <- rast(system.file("ex/logo.tif", package="terra")) plot(s[[1]], s[[2]]) plot(s, sqrt(s[[3:1]]), gridded=TRUE) # }
Run the code above in your browser using DataLab