Description Usage Arguments Details Value Slots Note Author(s) See Also Examples
SLattice: a Class for Spatial Aggregations (Area data)
1 | SLattice(observations)
|
observations |
object of one of the sublasses of Spatial,
anything but |
A class to store spatial aggregations, such as population densities or grid maps; spatial aggregations are (single) values that have reference to an area, e.g. the maximum, average, or sum over an area.
Aggregation values are values that refer to an area (polygon, grid cell), or line, as a whole: the values cannot be interpreted as the value at any given point in an area or on a line; these individual values may be recovered by estimation (area-to-point interpolation), but in principle got lost by aggregation. Aggregation may be integral to observation (e.g., remote sensing pixels refer to values aggregated over an area similar to the pixel), or a result from spatially aggregating data, e.g. from using aggregate.
object of class SLattice-class
observations
object of a subclass of Spatial; needs to be
anything but SpatialPoints
The domain for spatial aggregations is identical to the geometry covered by its geometry. The support of the aggregation is identical to its features (grid cells/pixels, polygons).
Edzer Pebesma
SObjects, SField
1 2 3 4 5 6 7 8 9 | library(maptools)
fname = system.file("shapes/sids.shp", package="maptools")[1]
nc = readShapePoly(fname, proj4string=CRS("+proj=longlat +datum=NAD27"))
sa = SLattice(nc)
# has aggregated quantities, except for CNTY_, CNTY_ID, FIPS, FIPSNO, NAME
library(sp)
demo(meuse, ask = FALSE, echo = FALSE)
try(x <- SLattice(meuse))
plot(SLattice(meuse.area))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.