powered by
Plots a 3D array as an RGB image in the plot window.
plotArrayAsImage(rgb.array, main = "")
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.
Optional title to display for image.
# NOT RUN { # Read in image flowers <- jpeg::readJPEG(system.file("extdata", "flowers.jpg", package = "countcolors")) # Plot plotArrayAsImage(flowers, main = "flowers!") # }
Run the code above in your browser using DataLab