grid_ct | R Documentation |
Set up grids around focal points. For example, sample points in your study
area with sample_ct()
then use grid_ct()
to establish a grid of camera
traps around each.
grid_ct(features, distance, case, n, id = "id_sample_ct")
features |
sf features (see |
distance |
distance between adjacent camera traps. Don't worry about the hypotenuse. |
case |
"queen", "rook", "bishop", or "triplet". Ignored if |
n |
number of points around each focal point. |
id |
default: "id_sample_ct" generated automatically from |
Extended sf object either nine times the length of input features for 'queen' case or 5 times the length of input DT for 'rook' or 'bishop' case. Otherwise n * number the length of input features. See examples.
The logical 'focal' column indicates which point is the focal camera trap for each grid.
Other grid:
grid_design()
data("clearwater_lake_density")
pts <- sample_ct(clearwater_lake_density, 1, type = 'random')
# Make grid with case, eg. 'queen'
queen <- grid_ct(features = pts, distance = 100, case = 'queen')
# Plot
plot(queen['focal'])
# Make grid with n
n_grid <- grid_ct(features = pts, distance = 100, n = 25)
plot(n_grid['id_grid_ct'])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.