flip: rearrange data in SpatialPointsDataFrame or...

Description Usage Arguments Value Author(s) Examples

Description

rearrange SpatialPointsDataFrame for plotting with spplot or levelplot

Usage

1
2

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).

Author(s)

Michael Sumner

Examples

1
2
3
4
5
6
7
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)

dis-organization/sp_dplyrexpt documentation built on May 15, 2019, 8:52 a.m.