plotRGBArray: Plotting an RGB array on the graphics.

Description Usage Arguments Value See Also Examples

View source: R/plotRGBArray.R

Description

Plotting an RGB array on the graphics.

Usage

1
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

1
2
3
library(jpeg)
img <- readJPEG(system.file("img", "Rlogo.jpg", package="jpeg"))
plotRGBArray(img)

bnasr/hazer documentation built on May 3, 2019, 4:31 p.m.