Skip to content
Prev 6782 / 29559 Next

flip SpatialGridDataFrame across axis

Michael, to be hounest, it even surprised me, being the author, that

data(meuse.grid)
gridded(meuse.grid) = ~x+y
fullgrid(meuse.grid) = TRUE
image(meuse.grid[104:1,])

would not flip the image. It just works hard to not destroy the spatial
location of all individual pixels -- it will select all rows in reverse
order, but in the end put everything back in place. What you do is kind
of more like image analysis, as it  moves the location of pixels, right?

Do you mind if we add your flipXxx functions to sp?
--
Edzer
Michael Sumner wrote: