[R] Image to plot

Jim Lemon jim at bitwrit.com.au
Mon Feb 7 10:39:06 CET 2011


On 02/07/2011 06:37 PM, Alaios wrote:
> Dear all I would like to plot the contents of a matrix as an Image. I found this code here http://www.phaget4.org/R/image_matrix.html but this is not only what I want. Instead of having inside every cell the color of the cell it would be nice to have also the arithmetic value over the background color.
>
> Having only the color sometimes does not make it clear to understand what is the value each cell has .. so I was thinking to combine colors and text inside every cell.
>
Hi Alex,
Check out color2D.matplot (plotrix) in particular the show.values argument.

Jim



More information about the R-help mailing list