dimensions-methods | R Documentation |
retrieves spatial dimensions box from spatial data
dimensions(obj)
obj |
object deriving from class "Spatial" |
two-column matrix; the first column has the minimum, the second the maximum values; rows represent the spatial dimensions
object deriving from class "Spatial"
# just 9 points on a grid:
x <- c(1,1,1,2,2,2,3,3,3)
y <- c(1,2,3,1,2,3,1,2,3)
xy <- cbind(x,y)
S <- SpatialPoints(xy)
dimensions(S)
# data.frame
data(meuse.grid)
coordinates(meuse.grid) <- ~x+y
gridded(meuse.grid) <- TRUE
dimensions(meuse.grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.