createGrid | R Documentation |
Creates a grid of squared polygons that fully cover the spatial extent of the study area. Study area is defined by the Raster Layers (e.g. the Hansen data sets) thar are used as inout to calculate the forest fragmentation statistics.
createGrid(rasters = NULL, spacing = 500)
rasters |
A raster stack with the forest map rasters. |
spacing |
A numeric vector defining the spacing of grids in meters, e.g. "500" will create grids of size 500m * 500m. "500" will be the default |
A raster stack with the two layers per class in the 'classValue' object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.