powered by
Shift the location of a Raster* of vector type Spatial* object in the x and/or y direction
# S4 method for Raster shift(object, x=0, y=0, filename='', ...)# S4 method for SpatialPolygons shift(object, x=0, y=0, ...)# S4 method for SpatialLines shift(object, x=0, y=0, ...)# S4 method for SpatialPoints shift(object, x=0, y=0, ...)
# S4 method for SpatialPolygons shift(object, x=0, y=0, ...)
# S4 method for SpatialLines shift(object, x=0, y=0, ...)
# S4 method for SpatialPoints shift(object, x=0, y=0, ...)
Raster* or Spatial* object
numeric. The shift in horizontal direction
numeric. The shift in vertical direction
character file name (optional)
if object is a Raster* object: additional arguments as for writeRaster
object
writeRaster
Same object type as x
x
flip, rotate, and the elide function in the maptools package
flip
rotate
# NOT RUN { r <- raster() r <- shift(r, x=1, y=-1) # }
Run the code above in your browser using DataLab