Extreme coordinates | R Documentation |
These functions return or set the extreme coordinates of a Raster* object; and return them for Spatial* objects.
xmin(x)
xmax(x)
ymin(x)
ymax(x)
xmin(x, ...) <- value
xmax(x, ...) <- value
ymin(x, ...) <- value
ymax(x, ...) <- value
x |
Raster* or Extent object |
value |
numeric. x or y coordinate |
... |
additional arguments. None implemented |
numeric
extent
, dimensions
r <- raster(xmn=-0.5, xmx = 9.5, ncols=10)
xmin(r)
xmax(r)
ymin(r)
ymax(r)
xmin(r) <- -180
xmax(r) <- 180
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.