Description Usage Arguments Value Author(s) See Also Examples
A helper function for function seedSource
. This function first creates a a polygon of class 'SpatialPolygonsDataFrame' and subsamples the polygon to create a uniform point patten of class 'SpatialPoints' which is retunred to an object.
1 | drawBuffer(x, y, r, numVert = 1000, n = 20, mask = NULL)
|
x |
The longitude coordinate for the centre of the buffer. |
y |
The latitude coordinate for the centre of the buffer. |
r |
The radius (in kilometers) of the buffer. |
numVert |
The number of vertices to create the buffer. |
n |
The number of uniform points to create within the buffer |
mask |
Optinal mask shapefile (.shp) used to clip the buffer. |
An object of class 'SpatialPoints'
P. A. Harrison
seedSource
, draw.circle
, SpatialPolygons
, SpatialPolygonsDataFrame
, spsample
1 2 3 4 5 6 | #' #load libraries
library(raster)
library(sp)
tmp <- PUCA::drawBuffer(x = 147.4686, y = -42.008, r = 5)
plot(tmp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.