process_rasters_patchmorph | R Documentation |
process_rasters_patchmorph
processes an input raster by reclassifying it based on suitability levels,
and then applying gap and spur distance transformations to generate a list of processed rasters.
process_rasters_patchmorph(input_raster, suitList, gapList, spurList)
input_raster |
RasterLayer The input raster to be processed. |
suitList |
numeric A vector of suitability levels for reclassification. |
gapList |
numeric A vector of gap distances for processing. |
spurList |
numeric A vector of spur distances for processing. |
list A list of processed rasters with names indicating the suitability, gap, and spur parameters used.
## Not run:
# Define input parameters
input_raster <- raster::raster(system.file("external/test.grd", package="raster"))
suitList <- c(0.2, 0.5, 0.8)
gapList <- c(1, 2, 3)
spurList <- c(0.5, 1, 1.5)
# Process the rasters
processed_rasters <- process_rasters_patchmorph(input_raster, suitList, gapList, spurList)
# Plot the first processed raster
plot(processed_rasters[[1]])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.