Scale a nativeRaster

nr_resize(nr, width, height, algo = "nn")

Arguments

nr

native raster

width, height

new dimensions

algo

'nn' for nearest neighbour (the default), or 'bilinear' for bilinear interpolation.

Value

New nativeRaster

Examples

stretched <- nr_resize(deer_sprites[[1]], 100, 40, algo = 'nn')
plot(stretched)