Description Usage Arguments Details Value Note Author(s) See Also

View source: R/sample.by.poly.R

Generate sampling points within a SpatialPolygon object, according to a specified sampling density.

1 2 | ```
sample.by.poly(p, n.pts.per.ac=1, min.samples=5,
sampling.type='hexagonal', iterations=10, p4s=NULL)
``` |

`p` |
a Polygon object, with coordinates in a projected CRS |

`n.pts.per.ac` |
requested sampling density in points per acre (results will be close) |

`min.samples` |
minimum requested number of samples per polygon |

`sampling.type` |
sampling type, see |

`iterations` |
number of tries that |

`p4s` |
a qualified proj4string that will be assigned to sampling points |

This function is typically accessed via some kind of helper function such as `constantDensitySampling`

.

A `SpatialPoints`

object.

This function expects that the `Polygon`

object has coordinates associated with a projected CRS– e.g. units of meters.

D.E. Beaudette

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.