[R] Barplot and colors for legend

Werner Wernersen pensterfuzzer at yahoo.de
Mon Apr 18 16:37:06 CEST 2005


Hi all!

One quick question: How do I get the standard colors
used by barplot? I have 
some stacked bars and would like to add a horizontal
legend via legend() but I 
don't know how to find the colors for the fills of the
legend points.

Thanks!
   Werner




More information about the R-help mailing list