[R] Making color gradient
Jim Lemon
jim at bitwrit.com.au
Mon Apr 28 10:34:52 CEST 2008
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
More information about the R-help
mailing list