MADscatterplot {diffeR} | R Documentation |
MAD scatterplot
Description
Generates a scatterplot indicating the distribution of values from two images in relation to the 1:1 line
Usage
MADscatterplot(grid1, grid2, strata = NULL)
Arguments
grid1 |
object of class SpatRaster corresponding to the first image |
grid2 |
object of class SpatRaster corresponding to the second image |
strata |
object of class SpatRaster corresponding to the mask or strata image. Zero values are taken as no data (i.e., NA) |
Value
a ggplot object corresponding to the scatterplot
See Also
Examples
old.par <- par(no.readonly = TRUE)
grid1 <- rast(system.file("external/GRID1_INT.rst", package = "diffeR"))
grid2 <- rast(system.file("external/GRID2_INT.rst", package = "diffeR"))
strata <- rast(system.file("external/strata_int.rst", package = "diffeR"))
MADscatterplot(grid1, grid2, strata)
veg_obs1 <- rast(system.file("external/veg_obs1.rst", package = "diffeR"))
veg_pre1 <- rast(system.file("external/veg_pre1.rst", package = "diffeR"))
veg_mask1 <- rast(system.file("external/veg_mask1.rst", package = "diffeR"))
MADscatterplot(veg_obs1, veg_pre1, veg_mask1)
par(old.par)
[Package diffeR version 0.0-8 Index]