Description Usage Arguments Value Examples
Takes a raster matrix and recognize zones exactly as the raster2vector function does. However does not return polygon vectors, but weight and center of mass for each polygone (or so called zone).
1 | rasterZoneAnalyzer(raster, from = 0, to = 1, step = 0.1)
|
raster |
input matrix of numeric values. |
from |
lower (greater than) margin for recognizable zone values. |
to |
upper (less than or equal) margin. |
step |
values gradient. |
matrix of zones by four values: fill (ceiling values), weight (in cells), x and y of the mass center.
1 2 | library(datasets)
rasterZoneAnalyzer(volcano, 120, 200, 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.