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? Thanks Zarrar -- Zarrar Shehzad Research Assistant NYU Child Study Center 215 Lexington Avenue, 14th Floor New York, NY 10016 Phone: (212) 263-8911 [[alternative HTML version deleted]]
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
Maybe Matching Threads
- diagonally fill a rectangle with color gradient
- is it possible to fill with a color or transparency gradient?
- patch to set start- and end-color-stop for the skydome fallback gradient
- grid.polygon() + color gradient
- Graphing: plot 3rd variable based on color gradient