| rotate.traps {secr} | R Documentation |
Rotate detectors while retaining other attributes.
## S3 method for class 'traps': rotate(object, degrees, centrexy = NULL, ...)
object |
object of class traps |
degrees |
clockwise angle of rotation in degrees |
centrexy |
vector with x,y coordinates of point about which to rotate |
... |
other arguments (not used). |
May be used with rbind.traps and shift.traps to create complex geometries.
An object of class traps with the location of each detector rotated about the centre.
Murray Efford murray.efford@otago.ac.nz
hollow1 <- make.grid(nx = 8, ny = 8, hollow = TRUE) hollow2 <- make.grid(nx = 8, ny = 8, hollow = TRUE) nested <- rbind (hollow1, rotate(hollow2, 45, c(70, 70))) plot(nested, gridlines = FALSE)