[R] vertically oriented color key in heatmaps

Jim Lemon jim at bitwrit.com.au
Tue Aug 14 11:11:10 CEST 2007

Rajarshi Guha wrote:
> Hi, I have some data which I was plotting using image(). I wanted to  
> add a vertical color key to the plot and I found that heatmap.2 in  
> gplots does let me add a color key. However, I was thinking of a  
> vertical bar with the color range rather than  the style that gplots  
> provides.
> Is there any package (or code snippet) that would let me add a  
> vertical color key to an image() or heatmap plot?
Hi Rajarshi,
Have a look at color.legend in the plotrix package.


More information about the R-help mailing list