Class "SpatialPoints"
Class for (irregularly spaced) points
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 box
proj4string
:Object of class "CRS"
, projection string
Class "Spatial"
, directly.
signature(x = "SpatialPoints")
: subsets the points; only
rows (points) can be subsetted
signature(from = "SpatialPoints", to = "data.frame")
:
retrieves the data part
signature(from = "SpatialPoints", to = "SpatialPixels")
: equivalent to assigning gridded TRUE for a copy of the object
signature(from = "SpatialPointsDataFrame", to = "SpatialPixelsDataFrame")
: equivalent to assigning gridded TRUE for a copy of the object
signature(from = "data.frame", to = "SpatialPoints")
: sets
coordinates, which may be in a data frame
signature(from = "matrix", to = "SpatialPoints")
: set
coordinates, which may be in a matrix
signature(obj = "SpatialPoints")
: retrieves
the coordinates, as matrix
signature(x = "SpatialPoints", y = "missing")
: plot points
signature(object = "SpatialPoints")
: summarize object
signature(x = "SpatialPoints")
: add point symbols to plot
signature(object = "SpatialPoints")
: prints coordinates
signature(object = "SpatialPoints")
: rbind-like method
The plot method for “SpatialPoints” objects takes the following arguments:
object of class SpatialPoints
default 3; either an integer specifying a symbol or a single character to be used as the default in plotting points
default FALSE; a logical value indicating whether both axes should be drawn
default FALSE; add to existing plot
default NULL; the x limits (x1, x2) of the plot
default NULL; the y limits of the plot
passed through
default FALSE; set the par
“usr” bounding box, see note in Spatial-class
default 1; numerical value giving the amount by which plotting text and symbols should be magnified relative to the default
default 1; default plotting color
default 1; line width
default 1; colour to be used for the background of the device region
Edzer Pebesma, edzer.pebesma@uni-muenster.de
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.