Skip to content
Prev 180643 / 398506 Next

Question about barplot: gridlines & value labels

Dimitri Liakhovitski wrote:
Hi Dimitri,
I think you will have to display the legend separately:

legend(20,90,rownames(table.a.percents),
 fill=c("gray30","gray50","gray70","gray90"),bg="white")


I tried passing the bg="white" argument in barplot, but it had no 
effect. Probably gobbled by another function before it got to legend.

Jim