Learn R Programming

terra (version 1.9-25)

scatterplot: Scatterplot of two SpatRaster layers

Description

Scatterplot of the values of two SpatRaster layers

Usage

# S4 method for SpatRaster,SpatRaster
plot(x, y, maxcell=100000, warn=TRUE, nc, nr, 
   maxnl=16, smooth=FALSE, gridded=FALSE, ncol=25, nrow=25, ...)

Arguments

Examples

Run this code
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