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:
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 -
2 matches
Mail list logo