SpatialPoints-class

0th

Percentile

Class "SpatialPoints"

Class for (irregularly spaced) points

Keywords
classes
Objects from the Class

Objects can be created by calls of the form SpatialPoints(x).

Slots

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

Extends

Class "Spatial", directly.

Methods

[

signature(x = "SpatialPoints"): subsets the points; only rows (points) can be subsetted

coerce

signature(from = "SpatialPoints", to = "data.frame"): retrieves the data part

coerce

signature(from = "SpatialPoints", to = "SpatialPixels"): equivalent to assigning gridded TRUE for a copy of the object

coerce

signature(from = "SpatialPointsDataFrame", to = "SpatialPixelsDataFrame"): equivalent to assigning gridded TRUE for a copy of the object

coerce

signature(from = "data.frame", to = "SpatialPoints"): sets coordinates, which may be in a data frame

coerce

signature(from = "matrix", to = "SpatialPoints"): set coordinates, which may be in a matrix

coordinates

signature(obj = "SpatialPoints"): retrieves the coordinates, as 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

See Also

SpatialPointsDataFrame-class

Aliases
  • SpatialPoints-class
  • [,SpatialPoints-method
  • coerce,SpatialPoints,matrix-method
  • coerce,SpatialPoints,data.frame-method
  • coerce,SpatialPoints,SpatialPixels-method
  • coerce,SpatialPoints,Line-method
  • coerce,SpatialPoints,Lines-method
  • coerce,SpatialPoints,SpatialLines-method
  • coerce,SpatialPointsDataFrame,SpatialPixelsDataFrame-method
  • show,SpatialPoints-method
  • as.data.frame.SpatialPoints
  • plot,SpatialPoints,missing-method
  • summary,SpatialPoints-method
  • print.SpatialPoints
  • summary.SpatialPoints
  • rbind.SpatialPoints
  • $,SpatialPoints-method
  • $<-,SpatialPoints,character-method
  • row.names.SpatialPoints
  • coerce,ppp,SpatialPoints-method
Examples
# NOT RUN {
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)
# }
Documentation reproduced from package sp, version 1.3-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.