powered by
Exchanges the \(x\) and \(y\) coordinates in a spatial dataset.
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)
Another object of the same type, representing the result of swapping the \(x\) and \(y\) coordinates.
Spatial dataset. An object of class "owin", "ppp", "psp" or "im".
"owin"
"ppp"
"psp"
"im"
Adrian Baddeley Adrian.Baddeley@curtin.edu.au and Rolf Turner rolfturner@posteo.net
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.
affine
flipxy
The function flipxy is generic, with methods for the classes of objects listed above.
affine, reflect, rotate, shift
reflect
rotate
shift
X <- flipxy(cells)
Run the code above in your browser using DataLab