[R] simple bar plot question

Stephen Tucker brown_emu at yahoo.com
Fri Mar 23 20:33:22 CET 2007


Sorry, that was a bit premature - you probably want other arguments in legend
as well; in particular 'fill' is an argument you'd probably be interested in 
for legends of barplots:

legend(x="topleft",cex=yourCex,fill=yourColors,legend.text=yourText,
       lty=NA,pch=NA,#and so on#)

--- Stephen Tucker <brown_emu at yahoo.com> wrote:

> I think you can set legend=FALSE in barplot() and add your own legend, in
> which you have a lot more control:
> 
> barplot(#your arguments#,legend=FALSE)
> legend(x="topleft",cex=yourCex)
> 
> etc.
> 
> 
> 
> 
> --- Janet <jerosenb at fas.harvard.edu> wrote:
> 
> > Literally 60 seconds after I sent my question, I found the cex.names  
> > parameter to barplot.
> > I haven't found a parameter for the size of the text in the legend.
> > 
> > Apologies for clogging inboxes semi-unnecessarily.
> > 
> > Janet
> > 
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> > 
> 
> 
> 
>  
>
____________________________________________________________________________________
> Finding fabulous fares is fun.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 



 
____________________________________________________________________________________
Bored stiff? Loosen up...



More information about the R-help mailing list