im_rotate | R Documentation |
Rotate an image
im_rotate( im, angle, expand = FALSE, cx = NULL, cy = NULL, interpolation = 2, pad = "zero" )
im |
an image |
angle |
rotation angle in degrees |
expand |
either FALSE (default, does not change image size) or TRUE |
cx |
center of rotation along x |
cy |
center of rotation along y |
interpolation |
Type of interpolation. Either 0 (nearest), 1 (linear), or 2 (cubic). |
pad |
Type of padding. Either "zero", "neumann", or "repeat". |
an image
plot(im_rotate(regatta, 30)) plot(im_rotate(regatta, 30, expand = TRUE)) plot(im_rotate(regatta, 30, expand = TRUE, pad = "repeat"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.