[R] controlling the labels width of a barplot

From: Samuel Le <Samuel.Le_at_srlglobal.com>
Date: Fri, 01 Apr 2011 13:34:48 +0000


Dear all,

I am trying the barplot command but some of the labels are disappearing as there is not enough place on the graph to put them all.

Here is an example of code that doesn't show all the labels:

barplot(sort(runif(9,0,0.2),decreasing=TRUE),xlim=c(0,20),width=2,names.arg=c("first name","second name","third name","fourth name","fifth name","sixth name","seventh name","eigth name","nineth name"))

Does someone know a way to control the size of the font in the barplot function, or to give them an inclination angle?

Many thanks,

Samuel

        [[alternative HTML version deleted]]



R-help_at_r-project.org 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. Received on Fri 01 Apr 2011 - 13:38:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 01 Apr 2011 - 14:00:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive