Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

make.line

Linear Detector Array


Description

Build secr ‘traps’ object, positioning detectors along a predefined set of lines. make.line is in the same family as secr functions make.grid etc.

Usage

make.line(SLDF, n = 10, startbuffer = 0, by = 20, endbuffer = 0, cluster
= NULL,
type = c("fixedstart", "randomstart", "centred"), detector = "multi")

Arguments

SLDF

linearmask object or SpatialLinesDataFrame from sp

n

maximum number of detectors (or clusters of detectors) per line

startbuffer

distance of first detector from start of line(s)

endbuffer

minimum distance of last detector from end of line(s)

by

spacing between detectors (or clusters of detectors) (m)

cluster

numeric vector of within-cluster positions (m from start)

type

character

detector

character value for detector type - "single", "multi" etc.

Details

Detectors are placed independently on each line.

Value

An object of class traps comprising a data frame of x- and y-coordinates, the detector type ("single", "multi", or "proximity" etc.), and possibly other attributes. The SpatialLinesDataFrame is retained as attribute ‘SLDF’.

See Also

Examples

x <- seq(0, 4*pi, length = 200)
xy <- data.frame(x = x*100, y = sin(x)*300)
mask <- read.linearmask(data = xy, spacing = 20)

trps <- make.line(mask, n = 15, startbuffer = 1000, by = 50)
plot(mask)
plot(trps, add = TRUE)

secrlinear

Spatially Explicit Capture-Recapture for Linear Habitats

v1.1.4
GPL (>= 2)
Authors
Murray Efford
Initial release
2021-05-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.