View source: R/cimgConversions.R
| array_to_cimg | R Documentation | 
What it says it does.
array_to_cimg(x, flatten_alpha = TRUE, bg = "white", rm_alpha = TRUE)
x | 
 An image array, i.e. as read in by readPNG.  | 
flatten_alpha | 
 Logical. Flatten the alpha channel?  | 
bg | 
 Passed to   | 
rm_alpha | 
 Logical. Remove the alpha channel? Note this will "reveal" whatever is hidden behind the transparent pixels, rather than turn them white.  | 
A cimg object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.