[R] legends in barplots of factors

Matthew Crawford s215aas at stat.berkeley.edu
Thu Nov 29 20:44:28 CET 2001


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.

Matt Crawford
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list