Re: [R] Making color gradient

From: Jim Lemon <jim_at_bitwrit.com.au>
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



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive