quadrats | R Documentation |
quadrats()
generates a regular, rectangular grid of survey units over a
frame.
transects()
is a convenience function for when only a single row of units
is desired.
quadrats(frame, n = NULL, size = NULL, orientation = 0)
transects(frame, n = NULL, size = NULL, orientation = 0)
frame |
An |
n |
Integer of length 1 or 2; number of units to be generated
in the x and y directions. See |
size |
Target size of the grid (in one dimension). See
|
orientation |
Integer; the orientation of the grid in degrees. Default: 0. |
An sf
grid of survey units.
frame <- rpolygon()
# North-south grid
grid <- quadrats(frame, n = c(10, 10))
plot(grid)
# NE-SW grid
grid <- quadrats(frame, n = c(10, 10), orientation = 45)
plot(grid)
# Fixed size grid
grid <- quadrats(frame, size = 100)
plot(grid)
# Transects
trans <- transects(frame, n = 10)
plot(trans)
# East-west transects
trans <- transects(frame, n = 10, orientation = 90)
plot(trans)
# Fixed size transects
trans <- transects(frame, size = 100)
plot(trans)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.