Custom difference (x - y) plots for SpatRaster object (based on terra package)
Usage
plot_diff(
x,
y,
col,
absolute = TRUE,
relative = TRUE,
lim_1 = NA,
lim_2 = NA,
unit = c(units(x), expression("%")),
...
)
Examples
folder <- system.file("extdata",package="eva3dm")
wrf <- paste0(folder,"/wrfinput_d01")
A <- wrf_rast(wrf,'XLAT')
terra::units(A) <- 'degrees'
B <- wrf_rast(wrf,'XLONG')
plot_diff(A,B,int = 2)