Creates a simple rectangular spatial plot of specified length and width in meters,
and returns a 1m x 1m sf grid overlaid on that area. CRS is EPSG:3857 by default.
Usage
setplot(length, width, crs = 3857, quiet = TRUE)
Arguments
- length
Numeric. Length of the plot in meters (X-dimension).
- width
Numeric. Width of the plot in meters (Y-dimension).
- crs
Integer. Coordinate Reference System (default = 3857).
Value
An sf object representing a grid of 1m x 1m cells covering the defined plot.
Examples
grid <- setplot(10, 5)
plot(grid)