Description Usage Arguments Value Author(s) See Also Examples
Sample points from xy, using a grid (raster) as stratification. Up to n points are sampled from each stratum (cell). For "chessboard" sampling (i.e. sampling from half the cells), use the argument chess='black'
, or chess='white'
.
1 | gridSample(xy, r, n=1, chess='')
|
xy |
A two column matrix or data.frame with x and y coordinates (or longitude and latitude), or a SpatialPoints* object |
r |
Raster* object |
n |
Maximum number of samples per cell |
chess |
Character. ”, 'black', or 'white'. If 'black' or 'white', "chess-board" sampling is used. I.e. only the 'white' fields, or only the 'black' fields are sampled. Cell number 1 (the upper left corner of |
A two column matrix with x and y coordinates (or longitude and latitude)
Robert J. Hijmans
1 2 3 4 5 6 7 8 9 10 |
Loading required package: raster
Loading required package: sp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.