Scale the size of a nativeRaster using Nearest Neighbour resizinng

nr_scale(nr, scale, algo = "nn")

Arguments

nr

nativeRaster

scale

scale factor

algo

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

Value

New nativeRaster

Examples

big <- nr_scale(deer_sprites[[1]], 2)
plot(big)