Description Usage Arguments Value See Also Examples
Convert spatial polygons to a raster. The value of each raster cell will be the polygon ID number. Alternatively, if copy.data
, the polygon data is appended to each raster cell.
1 2 |
shp |
shape object. A |
r |
|
nrow |
number of raster rows. If |
ncol |
number of raster columns. If |
N |
preferred number of raster cells. |
use.cover |
logical; should the cover method be used? This method determines per raster cell which polygon has the highest cover fraction. This method is better, but very slow, since N times the number of polygons combinations are processed (using the |
copy.data |
should the polygon data be appended to the raster? Only recommended when |
to.Raster |
not used anymore, since the "raster" output is always a |
... |
arguments passed on to |
a RasterBrick
is returned when by
is specified, and a RasterLayer
when by
is unspecified
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.