Re: [R] Making color gradient

From: Jim Lemon <>
Date: Mon, 28 Apr 2008 18:34:52 +1000

Zarrar Shehzad wrote:
> Hi
> I would like to make a color bar with a gradient of colors that represent
> values between 0-1. I used the gradient.rect function in plotrix to make
> the actually color bar but I don't know how to put a range of values (0-1)
> next to the color bar. How do I do this?
Hi Zarrar,
Look at the color.legend function in plotrix. That will do it for you.

Jim mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 28 Apr 2008 - 08:46:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 28 Apr 2008 - 09:30:34 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive