| shift.traps {secr} | R Documentation |
Translate detectors while retaining other attributes.
## S3 method for class 'traps': shift(object, shiftxy, ...)
object |
object of class traps |
shiftxy |
vector with displacements in x and y directions |
... |
other arguments (not used) |
May be used with rbind.traps and rotate.traps to create complex geometries.
An object of class traps with the location of each detector shifted by the desired amount.
Murray Efford murray.efford@otago.ac.nz
traps, rotate.traps, flip.traps
hollow1 <- make.grid(nx = 8, ny = 8, hollow = TRUE) hollow2 <- shift(make.grid(nx = 6, ny = 6, hollow = TRUE), c(20, 20)) nested <- rbind (hollow1, hollow2) plot(nested, gridlines = FALSE, lab = TRUE)