[R] Legend position in barplots

Marc Schwartz MSchwartz at medanalytics.com
Sun Nov 16 19:57:57 CET 2003


On Sun, 2003-11-16 at 12:42, Andreas Lackner wrote:
> Hello!

> Is there a way to change the position of the legend created in a barplot
> from the right side of the plot to the left side or somewhere else?
> 
> Thanks


Yes...instead of specifying 'legend.text' in barplot, use the legend()
function, which will enable you to specify the coordinates and other
details for the legend.

See ?legend for more information.

HTH,

Marc Schwartz




More information about the R-help mailing list