powered by
Internal function to construct plot area around coordinates
construct_buffer( coords, shape, size, return_vec = TRUE, crs = "", verbose = TRUE )
matrix or SpatVector object
SpatVector, sf object or 2-column matrix with coordinates of sample points
String specifying plot shape. Either "circle" or "square"
Size of sample plot. Equals the radius for circles or the side-length for squares in map units
If TRUE, vector objects are returned.
The coordinate reference system used for vector objects.
Print warning messages.
coords <- matrix(c(10, 5, 25, 15, 5, 25), ncol = 2, byrow = TRUE) construct_buffer(coords = coords, shape = "square", size = 5)
Run the code above in your browser using DataLab