plotRGBArray {hazer} | R Documentation |
Plotting an RGB array on the graphics.
Description
Plotting an RGB array on the graphics.
Usage
plotRGBArray(rgbArray, xlim = c(0, 1), ylim = c(0, 1), ...)
Arguments
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 |
Value
a rasterImage output plotted on the base R graphics.
See Also
plotRGBArray
wraps the graphics::rasterImage
function
Examples
library(jpeg)
img <- readJPEG(system.file("img", "Rlogo.jpg", package="jpeg"))
plotRGBArray(img)
[Package hazer version 1.1.1 Index]