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@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.