Debian Codegraph @

man/flip.Rd

raw
1 \name{flip}
2 \alias{flipHorizontal}
3 \alias{flipVertical}
4 \title{ rearrange data in SpatialPointsDataFrame or SpatialGridDataFrame
5 for plotting with spplot (levelplot/xyplot wrapper) }
6 \description{
7 rearrange SpatialPointsDataFrame for plotting with spplot or levelplot }
8 \usage{
9 flipHorizontal(x)
10 flipVertical(x)
11 }
12 \arguments{
13 \item{x}{ object of class SpatialGridDataFrame }
14 }
15
16 \value{
17 object of class SpatialGridDataFrame, with pixels flipped horizontally
18 or vertically. Note that the spatial structure is destroyed (or at least:
19 drastically changed). }
20 \author{Michael Sumner}
21 \examples{
22 data(meuse.grid) # data frame
23 gridded(meuse.grid) = c("x", "y") # promotes to
24 fullgrid(meuse.grid) = TRUE
25 d = meuse.grid["dist"]
26 image(d, axes=TRUE)
27 image(flipHorizontal(d), axes=TRUE)
28 image(flipVertical(d), axes=TRUE)
29 }
30 \keyword{dplot}