| nr_resize | R Documentation |
Resize a native raster by specifying the output dimensions
nr_resize(nr, width, height, algo = "nn")
nr |
native raster image |
width, height |
dimensions for output image |
algo |
'nn' for nearest neighbor (the default), or 'bilinear' for bilinear interpolation. |
New native raster image
Other resizing functions:
nr_scale()
stretched <- deer[[1]] |>
nr_copy() |>
nr_resize(100, 40, algo = 'nn')
plot(stretched)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.