Plot mask on top of map
plot_extrap_mask.Rd
Plots a raster with another raster "mask" on top of it
Usage
plot_extrap_mask(
map_r,
map_mask,
RGB_cols = TRUE,
mask_col = rgb(0, 0, 0, alpha = 0.9)
)
Arguments
- map_r
SpatRaster or Raster* object to be masked
- map_mask
SpatRaster or Raster* object with 1s where you want to mask and NA everywhere else (i.e., what you want to keep, as produced by
extrap_mask
)- RGB_cols
whether the plot should be RGB-based or not
- mask_col
color and transparency of mask (defaults to black and alpha = 0.9)