eval_pt | R Documentation |
Using camera trap locations generated with camtrapmonitoring
functions sample_ct()
and grid_ct()
, sample raster layers to
characterize and select camera trap locations, and quantify potential
sampling bias.
eval_pt(features, target, layer = 1)
features |
sf features (see |
target |
SpatRaster target (see |
layer |
default 1, see |
vector of values from target matching locations in features
Other eval:
eval_buffer()
,
eval_dist()
library(terra)
data("clearwater_lake_density")
clearwater_lake_land_cover <- rast(system.file('extdata',
'clearwater_lake_land_cover.tif', package = 'camtrapmonitoring'))
# Sample points
pts <- sample_ct(region = clearwater_lake_density, n = 1, type = 'random')
# Make grid with queen's case
queen <- grid_ct(features = pts, case = 'queen', distance = 100)
# Evaluate each point with the land cover layer
queen$lc <- eval_pt(features = queen, target = clearwater_lake_land_cover)
plot(queen["lc"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.