flip

0th

Percentile

rearrange data in SpatialPointsDataFrame or SpatialGridDataFrame for plotting with spplot (levelplot/xyplot wrapper)

rearrange SpatialPointsDataFrame for plotting with spplot or levelplot

Keywords
dplot
Usage
flipHorizontal(x)
flipVertical(x)
Arguments
x
object of class SpatialGridDataFrame
Value

  • object of class SpatialGridDataFrame, with pixels flipped horizontally or vertically. Note that the spatial structure is destroyed (or at least: drastically changed).

Aliases
  • flipHorizontal
  • flipVertical
Examples
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)
Documentation reproduced from package sp, version 1.0-13, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.