Description Usage Arguments Value
Convert a pixel to a polygon object by giving the raster object and cell number or xy coordinates vector
1 | pixelToPolygon(x, cell, plot = FALSE)
|
x |
Raster* object |
cell |
Cell number (numeric) or vector of length 2 representing the x and y coordinate of the desired pixel |
Object of class SpatialPolygons
encompassing the outline of the pixel located at cell
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.