plotRGBArray {hazer} | R Documentation |
Plotting an RGB array on the graphics.
plotRGBArray(rgbArray, xlim = c(0, 1), ylim = c(0, 1), ...)
rgbArray |
RGB array (W x H x 3) where the third dimension contains R, G and B channels, values varying from 0 to 1. |
xlim |
range of the x axis. |
ylim |
range of the y axis. |
... |
graphical parameters passed to the plot function |
a rasterImage output plotted on the base R graphics.
plotRGBArray
wraps the graphics::rasterImage
function
library(jpeg)
img <- readJPEG(system.file("img", "Rlogo.jpg", package="jpeg"))
plotRGBArray(img)