flip | R Documentation |
rearrange SpatialPointsDataFrame for plotting with spplot or levelplot
flipHorizontal(x)
flipVertical(x)
x |
object of class SpatialGridDataFrame |
object of class SpatialGridDataFrame, with pixels flipped horizontally or vertically. Note that the spatial structure is destroyed (or at least: drastically changed).
Michael Sumner
data(meuse.grid) # data frame
gridded(meuse.grid) = c("x", "y") # promotes to
fullgrid(meuse.grid) = TRUE
d = meuse.grid["dist"]
image(d, axes=TRUE)
image(flipHorizontal(d), axes=TRUE)
image(flipVertical(d), axes=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.