Description Usage Arguments Objects from the Class Methods Author(s) Examples
Class for a data frame with associated spatial attributes (points, lines, polygons, (irregular) grid).
1 |
SpatialDataFrame |
an object, if its class belongs to one of the subclasses of |
This class is a wrapper for some classes from package sp
:
SpatialPointsDataFrame-class,
SpatialPixelsDataFrame-class,
SpatialPolygonsDataFrame-class,
SpatialLinesDataFrame-class
Besides it contains two classes specific to sensors4plumes
:
SpatialIndexDataFrame-class: Objects of this class have no spatial reference, they are just data.frames
with an extra index.
SpatialPolygridDataFrame: These objects are similar to those from SpatialGridDataFrame-class, but several grid cells may refer to the same attributes in the data frame.
The following methods exist for all objects of class SpatialDataFrame. They may be defined individually for the respective subclasses, refer to the subclasses for details.
TRUE
for objects of class SpatialDataFrame
, else FALSE
signature(x = "SpatialDataFrame")
: length (number of spatial elements)
signature(x = "SpatialDataFrame")
: retrieves coordinates (of centroids)
signature(x = "SpatialDataFrame")
: retrieves the projection as CRS-class
signature(x = "SpatialDataFrame")
: retrieves the bounding box
signature(x = "SpatialDataFrame", zcol = "integer", ...)
: plots maps of the attributes zcol
("integer" or names of x@data
); wrapper of spplot
signature(x = "SpatialDataFrame", locations = "integer", data = "integer")
: selects spatial sub-objects (locations
) and/or attributes (data
: "integer" or "character" names of x@data
), returns an object of the same class. This is a general method for all SpatialDataFrame
objects. There are special subset
or "["
functions for the subclasses that may have more possibilities to choose (e.g. subset grid by a bounding box), see the subclasses for details.
signature(x = "SpatialDataFrame")
: computes the area/length of the elements (grid cells, polygons...), for point data it returns 0s.
Refer to the subclasses for further methods.
Kristina B. Helle, kristina.helle@uni-muenster.de
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.