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

Raster* or Extent object

value

numeric. x or y coordinate

...

additional arguments. None implemented

Value

numeric

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
  • xmin<-,Extent,numeric-method
  • xmin<-,BasicRaster,numeric-method
  • xmax<-,Extent,numeric-method
  • xmax<-,BasicRaster,numeric-method
  • ymin<-,Extent,numeric-method
  • ymin<-,BasicRaster,numeric-method
  • ymax<-,Extent,numeric-method
  • ymax<-,BasicRaster,numeric-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 3.0-12, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.