flipxy

0th

Percentile

Exchange X and Y Coordinates

Exchanges the \(x\) and \(y\) coordinates in a spatial dataset.

Keywords
spatial, math
Usage
flipxy(X)
 # S3 method for owin
flipxy(X)
 # S3 method for ppp
flipxy(X)
 # S3 method for psp
flipxy(X)
 # S3 method for im
flipxy(X)
Arguments
X

Spatial dataset. An object of class "owin", "ppp", "psp" or "im".

Details

This function swaps the \(x\) and \(y\) coordinates of a spatial dataset. This could also be performed using the command affine, but flipxy is faster.

The function flipxy is generic, with methods for the classes of objects listed above.

Value

Another object of the same type, representing the result of swapping the \(x\) and \(y\) coordinates.

See Also

affine, reflect, rotate, shift

Aliases
  • flipxy
  • flipxy.owin
  • flipxy.ppp
  • flipxy.psp
  • flipxy.im
Examples
# NOT RUN {
  data(cells)
  X <- flipxy(cells)
# }
Documentation reproduced from package spatstat, version 1.61-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.