SpatialGrid-class

0th

Percentile

Class "SpatialGrid"

class for defining a full, rectangular grid of arbitrary dimension

Keywords
classes
Objects from the Class

Objects are created by using e.g.

SpatialGrid(grid)

with grid of class GridTopology-class

Slots

grid

object of class GridTopology-class, defining the grid topology (offset, cellsize, dim)

bbox:

Object of class "matrix"; bounding box

proj4string:

Object of class "CRS"; projection

Extends

Class "SpatialPoints" directly; Class "Spatial", by class "SpatialPoints".

Methods

coordinates

signature(x = "SpatialGrid"): calculates coordinates for each point on the grid; coordinates are not stored in objects of class SpatialGrid

summary

signature(object = "SpatialGrid"): summarize object

plot

signature(x = "SpatialGrid"): plots cell centers

"["

signature(x = "SpatialGrid"): select rows and columns

See Also

SpatialGridDataFrame-class, SpatialGrid

Aliases
  • SpatialGrid-class
  • [,SpatialGrid-method
  • print.summary.SpatialGrid
  • as.data.frame.SpatialGrid
  • summary,SpatialGrid-method
  • coerce,SpatialGrid,data.frame-method
  • coerce,SpatialGrid,SpatialPixels-method
  • coerce,SpatialGrid,SpatialPoints-method
  • coerce,SpatialGrid,SpatialPolygons-method
  • show,SpatialGrid-method
  • plot,SpatialGrid,missing-method
  • coordnames,SpatialGrid-method
Examples
# NOT RUN {
x = GridTopology(c(0,0), c(1,1), c(5,5))
class(x)
x
summary(x)
coordinates(x)
y = SpatialGrid(grid = x)
class(y)
y
# }
Documentation reproduced from package sp, version 1.3-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.