Is it possible to draw a color matrix using levelplot function in the R package lattice?
I must color each cell with an RGB function.
The color matrix must be like below and i need to color each cell like rgb(1,0.8,0.9) etc..

I need this because i have to implement self-organizing-map algorithm for color classification. i am not allowed to use built-in kohonen/som functions or som classes.