| make.line | R Documentation | 
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.
make.line(SLDF, n = 10, startbuffer = 0, by = 20, endbuffer = 0, cluster
= NULL,
type = c("fixedstart", "randomstart", "centred"), detector = "multi")
| 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. | 
Detectors are placed independently on each line.
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’.
make.traps
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.