R/nr-core.R
nr_crop.Rd
Crop a section out of a nativeRaster into a new nativeRaster
nr_crop(nr, x, y, w, h) nr_crop2(nr, loc)
nativeRaster
dimensions of cropped section
dimensions of cropped section. A vector of 4 values i.e. c(x, y, w, h)
c(x, y, w, h)
New nativeRaster
nr <- nr_new(400, 400, 'hotpink') nr2 <- nr_crop(nr, 1, 1, 10, 10) plot(nr2)