Class "SpatialPoints"
Class for (irregularly spaced) points class
Objects can be created by calls of the form SpatialPoints(x)
.
coords
:: Object of class "matrix"
, containing the coordinates (each row is a point)bbox
:: Object of class "matrix"
, with bounding boxproj4string
:: Object of class "CRS"
, projection stringClass "Spatial"
, directly.
signature(x = "SpatialPoints")
: subsets the points; only rows (points) can be subsettedsignature(from = "SpatialPoints", to = "data.frame")
: retrieves the data partsignature(from = "SpatialPoints", to = "SpatialPixels")
: equivalent to assigning gridded TRUE for a copy of the objectsignature(from = "SpatialPointsDataFrame", to ="SpatialPixelsDataFrame")
: equivalent to assigning gridded TRUE for a copy of the objectsignature(from = "data.frame", to = "SpatialPoints")
: sets coordinates, which may be in a data framesignature(from = "matrix", to = "SpatialPoints")
: set coordinates, which may be in a matrixsignature(obj = "SpatialPoints")
: retrieves the coordinates, as matrixsignature(x = "SpatialPoints", y = "missing")
: plot pointssignature(object = "SpatialPoints")
: summarize objectsignature(x = "SpatialPoints")
: add point symbols to plotsignature(object = "SpatialPoints")
: prints coordinatessignature(object = "SpatialPoints")
: rbind-like methodThe plot method for SpatialPoints objects takes the following arguments:
par
usr bounding box, see note in Spatial-classEdzer Pebesma, edzer.pebesma@uni-muenster.de
SpatialPointsDataFrame-class
x = c(1,2,3,4,5) y = c(3,2,5,1,4) S <- SpatialPoints(cbind(x,y)) S <- SpatialPoints(list(x,y)) S <- SpatialPoints(data.frame(x,y)) S plot(S)