5.15 Origin

The origin of a raster is the cell corner closest to the coordinates (0, 0)

origin(elev)
## [1] 0 0
origin(elev_4)
## [1] 0 0

We can also change the origin

origin(elev_4) = c(0.25, 0.25)