Re: [R] plot 2D matrix of RGB values

2016-01-08 Thread Michael Sumner
There is ?rasterImage which can take a matrix of hex values, or a 3D array of individual colour dimension values in RGB. It's pretty low-level, used to add to an existing plot. The ancient ?image function leverages this facility if you use "useRaster = TRUE". The "raster" package (no relation), us

[R] plot 2D matrix of RGB values

2016-01-08 Thread Martin Batholdy via R-help
Hi, I have a 2 dimensional matrix with RGB values and would like to plot it as a two dimensional surface. I am aware of functions like image() that plot a matrix of values as a grid of coloured rectangles. But I can not directly feed in the specific color value for each of these rectangles, as