plot_diff | R Documentation |
Custom difference (x - y) plots for SpatRaster object (based on terra package)
plot_diff(
x,
y,
col,
absolute = TRUE,
relative = TRUE,
lim_a = NA,
lim_r = NA,
scale,
unit = c(units(x), expression("%")),
...
)
x |
SpatVector points |
y |
values to plot |
col |
color |
absolute |
to plot absolute difference |
relative |
to plot relative difference |
lim_a |
range of values for absolute scale |
lim_r |
range of values for relative scale |
scale |
variable multiplier for absolute difference |
unit |
annotation for units |
... |
arguments to be passing to plot_raster |
No return value
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.