[R] plotting matrix into 2D color plots with rainbow colors

Jim Lemon jim at bitwrit.com.au
Thu Jul 28 11:02:06 CEST 2011

On 07/28/2011 04:00 PM, hitendra padalia wrote:
> Dear all,
> Can you pl. help me in plotting a matrix into 2D plot with more color
> options. I tried to plot with myImagePlot with
> RGB color ramp but it shows limited variation in color. There is a rainbow
> plot option also. Can anyone help me.
Hi Hitendra,
You can specify colors from the rainbow function for color2D.matplot in 
the plotrix package. However, try this:



More information about the R-help mailing list