flipxy | R Documentation |
Exchanges the x
and y
coordinates in a spatial dataset.
flipxy(X)
## S3 method for class 'owin'
flipxy(X)
## S3 method for class 'ppp'
flipxy(X)
## S3 method for class 'psp'
flipxy(X)
## S3 method for class 'im'
flipxy(X)
X |
Spatial dataset. An object of class
|
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.
Another object of the same type, representing the
result of swapping the x
and y
coordinates.
and \rolf
affine
,
reflect
,
rotate
,
shift
X <- flipxy(cells)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.