| agitate | R Documentation |
Add noise to (jitter) a SpatVector of points. Points are moved randomly within a specified distance.
## S4 method for signature 'SpatVector'
agitate(x, maxdist)
x |
SpatVector. All other objects are passed to |
maxdist |
positive number. The maximum distance from the original location, in meter for lon/lat, otherwise in the units of the CRS |
SpatVector
## SpatVector
f <- system.file("ex/lux.shp", package="terra")
v <- as.points(vect(f)[1])
p <- agitate(v, 2500)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.