SpatialMultiPoints-class {sp} | R Documentation |
Class "SpatialMultiPoints"
Description
Class for (irregularly spaced) MultiPoints
Objects from the Class
Objects can be created by calls of the form SpatialPoints(x)
.
Slots
coords
:Object of class
"list"
, containing the coordinates of point sets (each list element is a matrix)bbox
:Object of class
"matrix"
, with bounding boxproj4string
:Object of class
"CRS"
, projection string
Extends
Class "Spatial"
, directly.
Methods
- [
signature(x = "SpatialMultiPoints")
: subsets point sets- coerce
signature(from = "SpatialPoints", to = "data.frame")
: coerce to data.frame- coordinates
signature(obj = "SpatialMultiPoints")
: retrieves all the coordinates, as one single matrix- plot
signature(x = "SpatialPoints", y = "missing")
: plot points- summary
signature(object = "SpatialPoints")
: summarize object- points
signature(x = "SpatialPoints")
: add point symbols to plot- show
signature(object = "SpatialPoints")
: prints coordinates- rbind
signature(object = "SpatialPoints")
: rbind-like method
plot method arguments
The plot method for “SpatialPoints” objects takes the following arguments:
- x
object of class SpatialPoints
- pch
default 3; either an integer specifying a symbol or a single character to be used as the default in plotting points
- axes
default FALSE; a logical value indicating whether both axes should be drawn
- add
default FALSE; add to existing plot
- xlim
default NULL; the x limits (x1, x2) of the plot
- ylim
default NULL; the y limits of the plot
- ...
passed through
- setParUsrBB
default FALSE; set the
par
“usr” bounding box, see note in Spatial-class- cex
default 1; numerical value giving the amount by which plotting text and symbols should be magnified relative to the default
- col
default 1; default plotting color
- lwd
default 1; line width
- bg
default 1; colour to be used for the background of the device region
Author(s)
Edzer Pebesma, edzer.pebesma@uni-muenster.de
See Also
SpatialMultiPointsDataFrame-class
SpatialPoints-class
Examples
cl1 = cbind(rnorm(3, 10), rnorm(3, 10))
cl2 = cbind(rnorm(5, 10), rnorm(5, 0))
cl3 = cbind(rnorm(7, 0), rnorm(7, 10))
mp = SpatialMultiPoints(list(cl1, cl2, cl3))
plot(mp, col = 2, cex = 1, pch = 1:3)
mp
mp[1:2]
print(mp, asWKT=TRUE, digits=3)