
SpatialPoints(x)
."Spatial"
, directly.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)
Run the code above in your browser using DataLab