as_image | R Documentation |
Image
objectThis function is a simple wrapper around EBImage::Image()
.
as_image(data, ...)
data |
A vector or array containing the pixel intensities of an image. If missing, the default 1x1 zero-filled array is used. |
... |
Additional arguments passed to |
An Image
object.
img <-
as_image(rnorm(150 * 150 * 3),
dim = c(150, 150, 3),
colormode = 'Color')
plot(img)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.