im_resize | R Documentation |
If either height or width is given, the other is determined to keep the aspect ratio of image.
im_resize(im, height, width, interpolation = 1)
im |
an image |
height |
image height |
width |
image width |
interpolation |
Interpolation method. Either 0 (nearest-neighbor), 1 (linear), or 2 (cubic). |
an image
dim(regatta) dim(im_resize(regatta, height = 150)) dim(im_resize(regatta, width = 300)) dim(im_resize(regatta, height = 100, width = 100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.