Extreme coordinates

0th

Percentile

Coordinates of the Extent of a Raster object

These functions return or set the extreme coordinates of a Raster* object; and return them for Spatial* objects.

Keywords
spatial
Usage
xmin(x)
xmax(x)
ymin(x)
ymax(x)

xmin(x) <- value xmax(x) <- value ymin(x) <- value ymax(x) <- value

Arguments
x

A Raster* object

value

A new x or y coordinate

Value

a single number

See Also

extent, dimensions

Aliases
  • xmin
  • xmax
  • ymin
  • ymax
  • xmin<-
  • xmax<-
  • ymin<-
  • ymax<-
  • xmin,BasicRaster-method
  • xmax,BasicRaster-method
  • ymin,BasicRaster-method
  • ymax,BasicRaster-method
  • xmin,Extent-method
  • xmax,Extent-method
  • ymin,Extent-method
  • ymax,Extent-method
  • xmin,Spatial-method
  • xmax,Spatial-method
  • ymin,Spatial-method
  • ymax,Spatial-method
Examples
# NOT RUN {
r <- raster(xmn=-0.5, xmx = 9.5, ncols=10)
xmin(r)
xmax(r)
ymin(r)
ymax(r)
xmin(r) <- -180
xmax(r) <- 180
# }
Documentation reproduced from package raster, version 2.9-5, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.