Description Usage Arguments Value
View source: R/st_poly_sample.R
Sample points within polygons
1 | st_poly_sample(x, n, min_dist = NULL, n_mod = c(5, 2), ...)
|
x |
A sf polygon object. |
n |
Number of point samples per point. |
min_dist |
Optional. Required minimum distance for sampled points in meters. |
n_mod |
Numeric of length two determining how n is increased for sampling bbox of each polygon. The following formula is used: n+n_mod[1]*n_mod[2]. |
... |
Arguments passed on to st_sample |
A sf object of points representing samples within input polygons.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.