spatstat (version 1.0-1)

shift.owin: Apply Vector Translation To Window

Description

Applies a vector shift to a window

Usage

shift.owin(W, vec=c(0,0))

Arguments

W
Window (object of class "owin").
vec
Vector of length 2 representing a translation.

Value

  • Another window (of class "owin") representing the result of applying the vector shift.

Details

The window is translated by the vector vec. This is a method for the generic function shift.

See Also

shift, shift.ppp, rotate, affine

Examples

Run this code
library(spatstat)
  W <- owin(c(0,1),c(0,1))
  X <- shift(W, c(2,3))
  plot(W)
  # no discernible difference except coordinates are different

Run the code above in your browser using DataCamp Workspace