View source: R/MADscatterplot.R
MADscatterplot | R Documentation |
Generates a scatterplot indicating the distribution of values from two images in relation to the 1:1 line
MADscatterplot(grid1, grid2, strata = NULL)
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) |
a ggplot object corresponding to the scatterplot
MAD
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.