Re: [R] greyPalette() in legend plot

2011-09-07 Thread Jack Siegrist
Hi, Using legend as an argument within the call to barplot will automatically add the color key to the legend. I don't know how to add the colors using legend separately. Try this revised code: y <- matrix(c(46.5102,42.7561,45.7857,45.6047,45.7027,81.4565,69.8824,69.1333,67.56,57.8929,43.3019,42.

[R] greyPalette() in legend plot

2011-09-07 Thread Rosario Garcia Gil
Hello I have a barplot where I get a grey gradient colors for each bar, I want to append a legend with the names of each bar and next to each name I need a box with the corresponding grey color. I managed to get the legend without boxes, but never got the wanted grey gradient in the legend: >