View source: R/prior_functions.R
combine_raster_layers | R Documentation |
Combine raster layers to a single raster layer. Weights can be assigned to the raster layers.
combine_raster_layers(..., weights = NULL)
... |
Either one raster brick/stack, or multiple raster layer objects |
weights |
numeric vector that specifies the weights of the raster layers |
raster object of one layer
create_prior
# load data
data("ZL_landuse")
# create environment layer
ZL_envir <- combine_raster_layers(ZL_landuse, weights = c(1, 1, 1, 0, 0))
## Not run:
if (requireNamespace("tmap")) {
tmap_mode("view")
qtm(ZL_envir)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.