image_square | R Documentation |
Converts a rectangular image into a square image by expanding the
rows/columns using image_expand()
.
image_square(img, plot = TRUE, ...)
img |
An |
plot |
Plots the extended image? defaults to |
... |
Further arguments passed on to |
The modified Image
object.
library(pliman)
img <- image_pliman("soybean_touch.jpg")
dim(img)
square <- image_square(img)
dim(square)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.