| 1 |
\name{SpatialPixels-class} |
| 2 |
\docType{class} |
| 3 |
\alias{SpatialPixels-class} |
| 4 |
\alias{[,SpatialPixels-method} |
| 5 |
\alias{coerce,SpatialPixels,SpatialGrid-method} |
| 6 |
\alias{print.summary.SpatialPixels} |
| 7 |
\alias{as.data.frame.SpatialPixels} |
| 8 |
\alias{summary,SpatialPixels-method} |
| 9 |
\alias{coerce,SpatialPixels,data.frame-method} |
| 10 |
\alias{show,SpatialPixels-method} |
| 11 |
\alias{plot,SpatialPixels,missing-method} |
| 12 |
\alias{rbind.SpatialPixels} |
| 13 |
|
| 14 |
\title{Class "SpatialPixels" } |
| 15 |
\description{ class for defining a pixels, forming a |
| 16 |
possibly incomplete rectangular grid of arbitrary dimension } |
| 17 |
\section{Objects from the Class}{ |
| 18 |
Objects are created by using e.g. |
| 19 |
|
| 20 |
SpatialPixels(points) |
| 21 |
|
| 22 |
with points of class \link{SpatialPoints-class} |
| 23 |
} |
| 24 |
\section{Slots}{ |
| 25 |
\describe{ |
| 26 |
\item{\code{grid}}{ object of class \link{GridTopology-class}, defining the |
| 27 |
grid topology (offset, cellsize, dim) } |
| 28 |
\item{\code{grid.index}}{integer; index of points in full grid} |
| 29 |
\item{\code{coords}}{ coordinates of points, or bbox of grid } |
| 30 |
\item{\code{bbox}:}{Object of class \code{"matrix"}; bounding box } |
| 31 |
\item{\code{proj4string}:}{Object of class \code{"CRS"}; projection } |
| 32 |
} |
| 33 |
} |
| 34 |
\section{Extends}{ |
| 35 |
Class \code{"SpatialPoints"} directly; |
| 36 |
Class \code{"Spatial"}, by class \code{"SpatialPoints"}. |
| 37 |
} |
| 38 |
\section{Methods}{ |
| 39 |
\describe{ |
| 40 |
\item{coordinates}{\code{signature(x = "SpatialPixels")}: calculates coordinates for |
| 41 |
each point on the grid; coordinates are not stored in objects of class SpatialGrid} |
| 42 |
\item{summary}{\code{signature(object = "SpatialPixels")}: summarize object} |
| 43 |
\item{plot}{\code{signature(x = "SpatialPixels")}: plots cell centers } |
| 44 |
\item{"["}{\code{signature(x = "SpatialPixels")}: select pixel cells; the argument |
| 45 |
\code{drop=FALSE} (default) does not recalculate grid topology for the selection, if |
| 46 |
\code{drop=TRUE} the grid topology is recomputed, and might change. } |
| 47 |
\item{rbind}{\code{signature(x = "SpatialPixels")}: rbind-like method} |
| 48 |
} |
| 49 |
} |
| 50 |
\author{ Edzer Pebesma, \email{[email protected]} } |
| 51 |
|
| 52 |
\seealso{ |
| 53 |
\code{\link{SpatialPixelsDataFrame-class}}, \code{\link{SpatialGrid-class}} |
| 54 |
} |
| 55 |
\examples{ |
| 56 |
data(meuse.grid) |
| 57 |
pts = meuse.grid[c("x", "y")] |
| 58 |
y = SpatialPixels(SpatialPoints(pts)) |
| 59 |
class(y) |
| 60 |
y |
| 61 |
summary(y) |
| 62 |
plot(y) # plots grid |
| 63 |
plot(y, grid = FALSE) # plots points |
| 64 |
} |
| 65 |
\keyword{classes} |