crop | R Documentation |
Crop image
crop(im, left = 0, top = 0, right = 0, bottom = 0)
im |
An image object of package magick. |
left |
Number of pixels to crop to the left |
top |
Number of pixels to crop to the top |
right |
Number of pixels to crop to the right |
bottom |
Number of pixels to crop to the bottom |
An image object of package Magick of reduced or equal size.
plot(im0 <- magick::image_read("https://goo.gl/nRQi5n"))
plot(crop(im0, top = 200))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.