make.line: Linear Detector Array

make.lineR Documentation

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

make.traps

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 documentation built on Oct. 17, 2023, 9:07 a.m.