Matthew Crawford wrote:> 
> How can I suppress a legend in a barplot when I'm plotting factors?
> 
> Here's what I'm doing, x and y are both factors:
> 
> plot(x,y)
> 
> This gives me a barplot with a legend where I don't want it.
> 
> My best solution so far is plot(x,y,legend=F) which just gives me an
> error message and doesn't finish the plot, but at least it doesn't
put
> the legend on.  Then I can go back and add the legend myself.
Have a look at 
 ?plot.factor
A possible solution to supress the legend is:
 plot(x,y, legend.text=NULL)
as in barplot().
Uwe
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._