Resize a native raster image using a scale factor

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

Arguments

nr

native raster image

scale

scale factor

algo

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

Value

New native raster image

See also

Other resizing functions: nr_resize()

Examples

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