Learn R Programming

sp (version 0.9-78)

SpatialPoints-class: Class "SpatialPoints"

Description

Class for (irregularly spaced) points

Arguments

Objects from the Class

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

Extends

Class "Spatial", directly.

See Also

SpatialPointsDataFrame-class

Examples

Run this code
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)

Run the code above in your browser using DataLab