[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:

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 -