Scatterplot of 2 Rasters

Hello! I am trying to create a scatterplot comparing the overlapping pixel values of two different rasters. One raster is at the state-scale (WA) and the second raster is of a zoomed in area within the state. When I try to plot(r1,r2) , I get the following error code:

Error in compareRaster(c(x, y), extent = TRUE, rowcol = TRUE, crs = FALSE, :
different extent

Could anyone help me figure out what the issue is? I am using "raster" and "rgdal" packages. Both rasters have the same resolution and coordinate system. I have tried cutting the state-scale raster to the mask of the second raster, but still get the same error code.

Thank you,
-M

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.