Description Usage Arguments Examples
Plots a 3D array as an RGB image in the plot window.
1 | plotArrayAsImage(rgb.array, main = "")
|
rgb.array |
3D RGB array with R, G, and B channels (pixel rows x pixel columns x color channels) to be plotted in the plot window as an actual image. |
main |
Optional title to display for image. |
1 2 3 4 5 6 | # Read in image
flowers <- jpeg::readJPEG(system.file("extdata", "flowers.jpg", package =
"countcolors"))
# Plot
plotArrayAsImage(flowers, main = "flowers!")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.